WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic Visual
Rule for post pages of specific categories (10 posts)

  1. cloudfe
    Member
    Posted 2 years ago #

    Hello, I have a question: is it possibile to create a rule that allows me to show a widget on the post pages of a specific category?

    Thank you

    http://wordpress.org/extend/plugins/widget-logic-visual/

    [ Please do not bump, it's not permitted here. ]

  2. Stina Deurell
    Member
    Posted 2 years ago #

    I have the same question ...

  3. Stina Deurell
    Member
    Posted 2 years ago #

    When I use the code:
    is_category( 'internt' )

    it's saved as:
    is_category( \'internt\' )

    and if I save it once more it becomes
    is_category( \\\'internt\\\' )

    And it just doesn't work in any case ...

  4. cloudfe
    Member
    Posted 2 years ago #

    Neither I found a solution :(

  5. sickhippie
    Member
    Posted 2 years ago #

    Have you tried using the category ID?

  6. cloudfe
    Member
    Posted 2 years ago #

    Actually not, I should I do that?

  7. sickhippie
    Member
    Posted 2 years ago #

    Give the ID a shot, it should work - separated by comma like this: in_category(5). It's 'in_category', not 'is_category', so that should help too.

  8. cloudfe
    Member
    Posted 2 years ago #

    Hello,
    I've just seen your message...

    I learned I cannot use both visual and advanced option for the same widget, so I tried installing the original plugin also to insert the code you suggested - in my case, I wrote in_category(5). But it doesn't work.

    Can the two plugins work together? Should I add something to the "in_category(5)" code?

    Thank you

  9. dave
    Member
    Posted 2 years ago #

    cloudfe,

    Did you try it with the ";" (semicolon) after the conditional tag (eg. in_category(5); )? I believe it would break if that's not in there.

  10. cloudfe
    Member
    Posted 2 years ago #

    Tried "in_category(13);", but nothing :(

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic