• Resolved smdever

    (@smdever)


    Hi Scribu,

    Sorry if this is a better question for the widget logic forum, but I thought you might know more about using is_multitax ().

    is_multitax() works fine in widget logic for displaying my widgets on all multitax pages, but I wanted to refine it further so that:

    Widget A displays on multitax pages where taxonomies A and C are being queried and
    Widget B displays on multitax pages where taxonomies B and C are being queried.

    do you know of any way to define my logic to achieve that?

    Thanks so much!
    Sarawan

    http://wordpress.org/extend/plugins/query-multiple-taxonomies/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author scribu

    (@scribu)

    In the development version (1.3-alpha6), I’ve added a parameter to is_multitax(). You can use it like this:

    is_multitax( array( 'taxonomy_a', 'taxonomy_b' ) )

    Thread Starter smdever

    (@smdever)

    Hi, thanks again for your quick response!

    I downloaded the development version you linked to above – for some reason, the example you gave me above didn’t work, but this modification did:

    is_multitax( array( 'a', 'b') )

    so I am very happy. Thank you!

    Thread Starter smdever

    (@smdever)

    duh, I now realize that the example I used was the one you intended, but I took you literally and wrote out “taxonomy_” before the taxonomy name. I am clearly new to this!

    Plugin Author scribu

    (@scribu)

    Yeah, I guess I could have wrote something like:

    is_multitax( array( 'color', 'shape' ) )

    where ‘color’ and ‘shape’ are taxonomy names.

    You’re welcome.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Query Multiple Taxonomies] is_multitax() in Widget Logic’ is closed to new replies.