[Plugin: Query Multiple Taxonomies] is_multitax() in Widget

Here we will discuss about Wordpress plugins development and their support
  • Ads

[Plugin: Query Multiple Taxonomies] is_multitax() in Widget

Postby shenogerlin » Mon Aug 09, 2010 12:56 am

Hi,

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!


http://wordpress.org/extend/plugins/que ... axonomies/
shenogerlin
Jr. Member
Jr. Member
 
Posts: 129
Joined: Fri Jul 30, 2010 12:53 am

Re: [Plugin: Query Multiple Taxonomies] is_multitax() in Widget

Postby jernashelo » Mon Aug 09, 2010 12:57 am

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' ) )
jernashelo
Jr. Member
Jr. Member
 
Posts: 135
Joined: Fri Jul 30, 2010 12:51 am

Re: [Plugin: Query Multiple Taxonomies] is_multitax() in Widget

Postby shenogerlin » Mon Aug 09, 2010 12:57 am

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!
shenogerlin
Jr. Member
Jr. Member
 
Posts: 129
Joined: Fri Jul 30, 2010 12:53 am

Re: [Plugin: Query Multiple Taxonomies] is_multitax() in Widget

Postby shenogerlin » Mon Aug 09, 2010 12:57 am

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!
shenogerlin
Jr. Member
Jr. Member
 
Posts: 129
Joined: Fri Jul 30, 2010 12:53 am

Re: [Plugin: Query Multiple Taxonomies] is_multitax() in Widget

Postby jernashelo » Mon Aug 09, 2010 12:57 am

Yeah, I guess I could have wrote something like:

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

where 'color' and 'shape' are taxonomy names.

You're welcome.
jernashelo
Jr. Member
Jr. Member
 
Posts: 135
Joined: Fri Jul 30, 2010 12:51 am

  • Ads

Return to Wordpress Plugins

Who is online

Users browsing this forum: No registered users and 1 guest

cron