WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Filtering Custom Taxonomies (3 posts)

  1. BenNieIV
    Member
    Posted 1 year ago #

    I have a custom taxonomy 'Ad' and each 'Ad' has a 'City', 'State', and 'Zip'. I would like to display the widget only when the 'State' is Kansas.

    Is this possible? Any direction is much appreciated!

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

  2. BenNieIV
    Member
    Posted 1 year ago #

    I take it this is not possible?

  3. alanft
    Member
    Plugin Author

    Posted 1 year ago #

    it probably is, but it might be complicated, and I have no experience of using custom taxonomies. However a google gives me this page/post a few times

    http://wordpress.org/support/topic/custom-taxonomies-conditional-tags?replies=13#post-1110167

    You could add a version of that function to your functions.php, and use it in some widget logic. You'd have to change widget logic 'load point' to at least after the theme (and hence functions.php) is loaded.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.