WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Widget Logic not working with Tax (3 posts)

  1. rosspub
    Member
    Posted 1 year ago #

    I am giving up, which is very disappointing because a lot of my plugins depend on Widget Logic, unless someone can help me out here.

    Widget logic was working perfect until recently it just stopped working.

    It works for everything but with the conditional tag: is_tax.

    I have a Custom post type with a taxonomy for that post type. So, when I write for instance:

    is_tax('1', '2')

    is_tax('postType', 'taxName')

    is_tax('parentTax', 'childTax')

    None of these work. What I was doing that was working was writing a logic that that would display on a page template and in the Taxonomy Child category. So it looked like this:

    is_page_template('retirement-communities-raleigh-durham.php')|| is_tax('50', '376')

    And is was working perfectly so when it stopped working I changed out the id's and inserted the slug of the parent and the child and it is still not working.

    Anyway, it has been working for 7 months now and all of a sudden it is no longer working. I am a very experience coder and honestly ran out of options. Is it not working with the updated wordpress version?

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

  2. rosspub
    Member
    Posted 1 year ago #

    Also forgot to note: If I write it in a my sidebar.php it works fine, but it will not work using the widgets

  3. rosspub
    Member
    Posted 1 year ago #

    Also, in the 1st comment, There is a space before the ||

    I for got to add the space when writing the post

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags