Support » Plugin: WP-PostRatings » Rating just one category?

  • Resolved WayneM1


    How can I add the rating capability to just one category?

    I’m guessing I would have to edit my post.php page to insert the code:

    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>

    And use some other function of the codex to only execute that code if the post is a certain category id.

    Anyone know how I can do that?


Viewing 2 replies - 1 through 2 (of 2 total)
  • I think I figured this out on my own…

    <?php if(function_exists('the_ratings') && in_category(xx) ) { the_ratings(); } ?>

    This seems to work 🙂

    Just change “xx” to the id of the category you want the rating system to show on.

    which plugin r u using ??is the above code inserted in post.php??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Rating just one category?’ is closed to new replies.