WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. lifesgood
    Member
    Posted 1 year ago #

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

    http://wordpress.org/extend/plugins/kk-star-ratings/

  2. draivika
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

  5. lifesgood
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.