kk Star Ratings
Showing ratings only on a specific custom post type? (5 posts)

  1. lifesgood
    Posted 3 years ago #

    Is there anyway to do this? I don't want ratings on my regular posts, just one specific custom post type.


  2. draivika
    Posted 3 years ago #

    I am doing this pretty easily by simply choosing NOT to show in posts in the plugin settings, and then in my CPT template inserting the function to display the ratings. <?php if(function_exists("kk_star_ratings")) : echo kk_star_ratings($pid); endif; ?>

  3. Ronnieinspain
    Posted 3 years ago #

    @draivika, this is exactly what i'm trying to achieve, on a custom post type (which i couldnt have chosen in settings) but im getting "Fatal error: Call to undefined function k_star_ratings()"; could this be because im working with a child theme perhaps? If someone can, please point me in the right direction; much appreciated!

  4. draivika
    Posted 3 years ago #

    @lifesgood I don't have a child theme setup to test. Where are you adding this code exactly?

  5. lifesgood
    Posted 3 years ago #

    I ended up doing this with css {display:none;} on my posts.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • kk Star Ratings
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.