• Resolved krys

    (@krysteleal)


    Hello,

    I want to hide a button when the post as a particular category. I insert the button on the post template page, and tried to use the Dynamic Conditions plugins setting up with these settings:

    – Dynamic Tag: Post Terms: Categories
    – Show/Hide: “Hide when condition met”
    – Condition: “Doest not contain” – Compare Type: Text; Conditional value: (the name of the category that I don’t want to show the button)

    But doesn’t work. Maybe I’m doing something wrong? Maybe it’s not possible to do this with this plugin?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author rtowebsites

    (@rtowebsites)

    Hello @krysteleal,

    we got it work:

    – Dynamic Tag -> Post Terms -> Categories (Seperator -> “,” Link -> On/Off)
    – Show/Hide -> Hide when condition met
    – Condition -> Contains
    – Compare Type -> Text
    – Conditional value -> <category name> (In our case “test”)

    Result:

    The Button is hidden on every post with category “test”.

    We close this issue. if you need any further help, just open a new issue.

    Hi, I’m having the same issue. I cant get to work using your method above. Thanks

    Plugin Author rtowebsites

    (@rtowebsites)

    Hello @antbalzan,

    can you please send us the informations from the Debug-Mode?

    Thank you!

    Element:
    text-editor-911f966 (widget)
    DynamicTag-Tag:
    post-terms
    DynamicTag-Key:
    DynamicTag-Value:

    Check-Value:
    sleep show
    Check-Value2:
    Condition-Type:
    default
    Condition:
    Hide if contains
    Condition met:
    no

    ——-
    Hi

    Thanks for this, the Category is ‘Sleep Show’. I have tried just ‘sleep’ the above and the slug ‘sleep-show’.

    I have set the Post Terms taxonomies to ‘Category’, the seperator is left default as “,”. Condition is ‘Contains’.

    Your help would be appreciated.
    Thanks
    Ant

    Hi, doing some more testing I found that the post type in the example above is not registering the category info. When I try with another post type that I registered, the category does show and the dynamic condition is met. So its something to do with the registered post type in the theme.

    Thanks
    Ant

    Plugin Author rtowebsites

    (@rtowebsites)

    Hello @antbalzan,

    do you work with custom post types? Then maybe the problem is somewhere else.

    We tried it with custom post types too, and it worked for us.

    With the basic post type it should look like:

    Element:section-f2fef23 (section)
    DynamicTag-Tag:post-terms
    DynamicTag-Key:
    DynamicTag-Value:<span>other</span>, <span>test</span>
    Check-Value:test
    Check-Value2:
    Condition-Type:default
    Condition:Hide if contains
    Condition met:yes

    Maybe you can provide us some more informations about your setup, so we can try to help you further.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not show button when post as a particular category’ is closed to new replies.