• Resolved russclem

    (@russclem)


    I’m trying to make a widget appear on my sidebar when the post contains specific text. I’m using the Widget Options plugin, and I think I need to use conditional tags?

    But I’m not sure which ones.

    Does anyone have any idea how this can be implemented?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter russclem

    (@russclem)

    Nevermind, I’ve solved it.

    I created a custom taxonomy, which automatically gets added if the post contains a specific keyword.

    Then I just used the has_term conditional tag, and my content-relevant widget displays perfectly!

    Hi @russclem,

    Thank you so much for choosing Widget Options! I’m glad you’ve sorted it out, I hope you’re loving the plugin features 🙂

    Cheers,
    Jeffrey

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Display widget if post contains text using conditional tags?’ is closed to new replies.