WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Yet Another Related Posts Plugin] Exclude certain categories from giving excerpt in YARPP (2 posts)

  1. Dawa1
    Member
    Posted 5 years ago #

    I have an image category, and I use JavaScript for those images. The post only has JavaScript and the image so when it is showing related categories, it shows the code. This is what I don't want. Is there any way to only block an excerpt for some categories, but not all? So I can just block the excerpt for those articles that are in that category?

  2. Good question. If you use the new templating feature, you can write an if-statement which checks for the right categories (in PHP) and only display the excerpts in those cases. Check out the tutorial here:

    http://mitcho.com/blog/projects/yarpp-3-templates/

Topic Closed

This topic has been closed to new replies.

About this Topic