[Plugin: Query Multiple Taxonomies] Plugin break taxonomy.php template
-
Hi scribu,
It looks like latest version of the plugins disabled the use of taxonomy.php template. (bypass it).Any idea how to prevent it ?
-
It looks for
multitax.phpinstead.A workaround would be to create multitax.php and put this line in it:
<?php include('./taxonomy.php'); ?>You could also do something a little more advanced:
<?php if ( count(qmt_get_query()) == 1 ) : include './taxonomy.php'; die; else: // output template for when multiple taxonomies are queried endif;Not sure if I should make it work like this by default or not or if I should drop
multitax.phpaltogether.Thanks,
All I did to work around this is to include multitax.php files in template directory 🙂
Hi – thanks for your great work. I tried this on the standard structure theme based on hybrid.
When I create the multitax page it outputs the following error
Catchable fatal error: Object of class WP_Error could not be converted to string in /home/anhhan83/learningjunkies.com/wp-content/themes/hybrid/taxonomy.php on line 25
The site works fine with the plugin in deacitivated and fine without the multitax.php page. Any thoughts?
Thanks for reporting. I’m aware that there are issues with the Hybrid framework.
Excellent – thanks for the info.
Is there any way to use this plugin in a specified category?
E.g say I add half my posts to the “Resources” and use some custom taxonomy.
Will your plugin work on the resource.php page to filter based on the taxonomy that ONLY exists in posts belonging to the Resources category?
If so, what is the best way to achieve this?
Thanks!
Will your plugin work on the resource.php page to filter based on the taxonomy that ONLY exists in posts belonging to the Resources category?
It will always attempt to load multitax.php if it exists.
Note that the plugin still needs work when it comes to handling categories.
this would be great, but I installed it on Beta 2 and it doesn’t seem to be working on my site…
I am using two custom taxonomies (locations, job-category), and a custom page type (jobs).
Here’s my query
?post_type=jobs&locations=beaver-valley&job-category=science-technology&post_status=publish&orderby=date&order=DESC&posts_per_page=15&paged=1I am using the following code to change my query:
$wp_query = new WP_Query(); $new_query_vars = "?post_type=jobs&locations=beaver-valley&job-category=science-technology&post_status=publish&orderby=date&order=DESC&posts_per_page=15&paged=1"; $wp_query -> query( $new_query_vars );With the code above, WordPress only filters on the ‘job-category’ taxonomy. When I remove that, the ‘locations’ filter works just fine.
I installed the plugin, but I get the same results…
Please, am I doing something wrong?
Also, is this code going into Core soon? This seems like a pretty vital piece of functionality, IMO.
Thanks!
Is ‘locations’ a custom taxonomy or something else?
Try installing the development version.
Also, is this code going into Core soon? This seems like a pretty vital piece of functionality, IMO.
Using 1.2-alpha 5, the plugin appears to break category lists in the menu functions.
If I build a menu and add some categories, in my menu bar, I’ll get this:
whatever.com/category/foodwriting/travel/
Turn on your plugin (only plugin activated), and I get a 404 not found error on all category selections, though the url displayed is the same.
I know it’s alpha, just thought I’d let you know.
fooddude: I can’t reproduce your problem using WP 3.0.
I’m pretty certain it has nothing to do with custom menus, though.
Try switching to the default theme and disabling all other plugins and see if you still get a 404 on that URL.
Update: fooddude, the problem you reported has been resolved.
The topic ‘[Plugin: Query Multiple Taxonomies] Plugin break taxonomy.php template’ is closed to new replies.