WordPress.org

Ready to get started?Download WordPress

Forums

Query Multiple Taxonomies
[resolved] Problems with 1.3 in WP 3.0.1 (3 posts)

  1. ostephens
    Member
    Posted 3 years ago #

    I've just upgraded to 1.3 and having some issues with the widget. (using TwentyTen theme)

    On the homepage (i.e. no filtering by custom taxonomy) widget displays fine. Click a link from the widget - so now seeing all posts corresponding to a single custom taxonomy term, and get the error:

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in ~/.../wp-content/plugins/query-multiple-taxonomies/core.php on line 161

    Line 161 onwards reads:

    $args = array_merge( $wp_query->query, array(
    'nopaging' => true,
    'caller_get_posts' => true,
    'cache_results' => false,
    ) );

    Modifying this to

    $args = array_merge( $wp_query->query_vars, array(
    'nopaging' => true,
    'caller_get_posts' => true,
    'cache_results' => false,
    ) );

    Seems to fix the error but haven't tested.

    Error doesn't occur if you jump straight to a view searching multiple terms from custom taxonomies. (makes sense - then you have an array of terms in $query I guess)

    Secondly noticed that now in widget it seems to only offer ability to 'add term' to current view, not to switch to a view filtered to alternative term - which was the previous behaviour. i.e. clicking anywhere on a term in the taxonomy gives the same action as was previously reserved only for the '+' sign following the term

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    The warning has been fixed in the development version (1.3.1-alpha).

    Secondly noticed that now in widget it seems to only offer ability to 'add term' to current view, not to switch to a view filtered to alternative term - which was the previous behaviour. i.e. clicking anywhere on a term in the taxonomy gives the same action as was previously reserved only for the '+' sign following the term

    Yes, some users found having two links confusing. You can use the new hooks 'qmt_add_term' and 'qmt_remove_term' to get the old behaviour.

  3. ostephens
    Member
    Posted 3 years ago #

    Thanks. Yes, I had comments on the confusion between clicking the term and clicking the 'plus'.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic