WordPress.org

Ready to get started?Download WordPress

Forums

Scroll Triggered Boxes
[resolved] box only for certain categories (4 posts)

  1. ernstarchitect
    Member
    Posted 9 months ago #

    Hello Danny,

    Great plugin. I experimented with the options to show the box only on certain posts of a certain category. But I can't get it to work. Is it possible to show the box only on posts of a certain category?

    Greetings, Ernst

    http://wordpress.org/plugins/scroll-triggered-boxes/

  2. Danny van Kooten
    Member
    Plugin Author

    Posted 9 months ago #

    Hi Ernst,

    Definitely, although it is a little more advanced. I need to make the Manual conditional tag in the "Show this box" section a bit more clear but you can use the following conditional functions.

    In your case, you can use in_category('category-1', 'other-category') to only show the box when a post is in one of the given category. Between the parentheses goes a comma-separated list of category ID's or slugs.

    Source: in_category()

    Hope that helps! Say hi to Steven for me. :-)

  3. ernstarchitect
    Member
    Posted 9 months ago #

    Hi Danny,

    Nice, it worked. Thanks.

  4. Danny van Kooten
    Member
    Plugin Author

    Posted 9 months ago #

    Awesome. Would really appreciate it if you could leave a short review on the plugin!

Reply

You must log in to post.

About this Plugin

About this Topic