WordPress.org

Support

Support » Plugins and Hacks » WP-PostRatings » [Resolved] Rating just one category?

[Resolved] Rating just one category?

  • 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?

    Thanks.

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 ‘[Resolved] Rating just one category?’ is closed to new replies.
Skip to toolbar