• Resolved maurodimarino

    (@maurodimarino)


    Hello
    I have inserted the shortcode in theme using this php code:
    <?php echo do_shortcode( '[yasr_visitor_votes size="medium"]' ); ?>

    I noticed that the Product item is not showed anymore as rich snippets after last updates.

    If I insert in Gutemberg the pure shortcode [yasr_visitor_votes size=”medium”] it works.

    Do you have any suggestions to make it work again? I can’t insert the shortcode manually in all posts.
    This developing was been made in like 10 websites and rich snippets stars are disappeared everywhere.
    Thank you

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor dudo

    (@dudo)

    Hi!

    You’re right, seems like has_shortcode doesn’t work if shortcode is placed in the theme

    I will find a fix for this, in the meantime, with FTP, open file /wp-content/plugins/yet-another-stars-rating/lib/yasr-functions.php and comment out 437, 438 and 439.

    Best,
    Dario

    Thread Starter maurodimarino

    (@maurodimarino)

    Thank you very much for your support.
    The temporary fix worked as you suggested.
    I will wait for the new update with this fix.
    Thank you

    Thread Starter maurodimarino

    (@maurodimarino)

    Hello,
    I had to rollback to 2.2.5 version because the has shortcode function shows the structured data js in all posts and Search Console notified me all errors.
    Will you still think to a new update to fix this problem?
    Thank you

    Plugin Contributor dudo

    (@dudo)

    Yes I’ve already considered this.

    Best,
    Dario

    Plugin Contributor dudo

    (@dudo)

    Can you please try to download again the last version, and upload this file https://gist.github.com/Dudo1985/57e3ac81763cb1488caca50f8bab0abc inside the /wp-content/plugins/yet-another-stars-rating/lib/ directory overwriting the old one?

    Thanks

    Plugin Contributor dudo

    (@dudo)

    Fixed in version 2.3.0, thank you ??

    Thread Starter maurodimarino

    (@maurodimarino)

    Thank you to you too!
    It solved all issues!
    Great!!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Shortcode in theme doesn’t work after update’ is closed to new replies.