How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support Issue with schema review

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #9700
    cabhal
    Participant

    Hello, I’m having an issue with schema review as I’m using

      in the affiliate small info.

      Now, how can I sent for the item “reviewBody” the excerpt of the page?

    #9705
    admin
    Keymaster

    Hi cabhal,

    You can override the function “poka_add_structured_data” in your child theme functions.php and change the “reviewBody” to the field you want.

    #9712
    cabhal
    Participant

    Thanks, you know how to call an excerpt of the casino reviews?

    #9725
    casino1
    Participant

    Hey Cabhal,

    You can call the wordpress function get_the_excerpt();

    But that will display <p> and </p> in the data structure markup.

    If you want to remove the <p>, do the following:

    // $get_excerpt_text = the_excerpt();
    $get_excerpt_text = get_the_excerpt();

    // Strip the <p> tag by replacing it empty string
    $tags = array(“<p>”, “</p>”);
    $excerpt_content = str_replace($tags, “”, $get_excerpt_text);

    Then just echo in the markup where you want to display the excerpt: <?php echo $excerpt_content ?>

    #9727
    cabhal
    Participant

    Thanks a lot!

    #9994
    clickingmedia
    Participant

    Hello,

    I’m using the ForexOptions theme, and I’m having the same schema review error in the affiliate small info section.
    I don’t know how to fix it.

    Thank you.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.