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

    (@dudo)

    Hi jaredyates, thank you for using YASR.

    At the moment, you if you custom post type you can choose if show yasr only in the custom post, but not exclude them only in custom post.

    I’ve added this on my todo list.

    Best,
    Dario

    onico0

    (@onico0)

    Hi ! ??

    I join the request. Would be appreciate to filter the widget only on certain post types or only on default posts.

    Plugin Contributor dudo

    (@dudo)

    First, I want to apologize for my answer, it was hard to understand even for myself ??

    Yes this feature is on my todo list from a loong time, I will add this soon or later ??

    Best,
    Dario

    Thread Starter jaredyates

    (@jaredyates)

    I’m using another plugin that I like better, but you might be able to use the same strategy with this one. I put this code in the template.

    <?php if($post->post_type == 'post') :?>
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
    <?php endif;?>

    In my case the_ratings() is the ratings function. I don’t know what it would be for Dario’s plugin, but maybe he could tell you.

    Plugin Contributor dudo

    (@dudo)

    the function name could be shortcode_overall_rating_callback if overall rating is used, or shortcode_visitor_votes_callback if yasr_visitor_votes is used.

    Best,
    Dario

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Exclude stars based on post type?’ is closed to new replies.