WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Query Multiple Taxonomies] Plugin break taxonomy.php template (12 posts)

  1. saharusa
    Member
    Posted 4 years ago #

    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 ?

  2. scribu
    Member
    Posted 4 years ago #

    It looks for multitax.php instead.

    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.php altogether.

  3. saharusa
    Member
    Posted 4 years ago #

    Thanks,

    All I did to work around this is to include multitax.php files in template directory :)

  4. thedimsumkid
    Member
    Posted 4 years ago #

    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?

  5. scribu
    Member
    Posted 4 years ago #

    Thanks for reporting. I'm aware that there are issues with the Hybrid framework.

  6. thedimsumkid
    Member
    Posted 4 years ago #

    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!

  7. scribu
    Member
    Posted 4 years ago #

    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.

  8. earthmanweb
    Member
    Posted 4 years ago #

    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=1

    I 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!

  9. scribu
    Member
    Posted 4 years ago #

    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.

    See http://core.trac.wordpress.org/ticket/12891

  10. fooddude
    Member
    Posted 4 years ago #

    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.

  11. scribu
    Member
    Posted 4 years ago #

    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.

  12. scribu
    Member
    Posted 4 years ago #

    Update: fooddude, the problem you reported has been resolved.

    See WP3.0: Second-level category archives 404'd

Topic Closed

This topic has been closed to new replies.

About this Topic