Forums

widget logic help (4 posts)

  1. marty84
    Member
    Posted 8 months ago #

    How do I post a widget in the articles (single) belonging to a particular category? What is the code? System is not a tag like this: is_single ('name_category') No, right?

  2. alchymyth
    The Sweeper
    Posted 8 months ago #

    in_category('name_category')

    the list of conditional tags: http://codex.wordpress.org/Conditional_Tags

  3. marty84
    Member
    Posted 8 months ago #

    Here I found nothing. I have not explained well. The Widget must be in the post (single) who are under a specific category. And do not post in all (single) web site!

  4. alchymyth
    The Sweeper
    Posted 8 months ago #

    try to combine the two:

    is_single() && in_category('name')

Reply

You must log in to post.

About this Topic