Support » Plugin: Query Multiple Taxonomies » [Plugin: Query Multiple Taxonomies] Problems with 1.3 in WP 3.0.1

  • Resolved ostephens

    (@ostephens)


    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

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

    (@scribu)

    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.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Query Multiple Taxonomies] Problems with 1.3 in WP 3.0.1’ is closed to new replies.