Support » Plugin: Yasr - Yet Another Stars Rating » How do I display on the category page?

  • I need to display the rating on the category page, but it does not work, it only works on the posts page.

    I took the test on the Structured Data Testing Tool Google.

    How do I make it work on the Categories page?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dudo

    (@dudo)

    Hello, thank you for using YASR!

    The rich snippets are included only in single post or page, not in archive page, even if rating is working on these ones.

    Best,
    Dario

    I have the same problem. Code below works on post/pages but not on a category page.

    <?php echo shortcode_visitor_votes_callback( array( 'size' => 'small', 'postid' => $product->ID ) ); ?>

    Is there another way to get ratings on category pages?

    Thank you!

    Nevermind, I solved this by adding
    define( 'YASR_SHOW_VISITOR_VOTES_IN_LOOP', 'enabled' );
    to wp-config.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I display on the category page?’ is closed to new replies.