WordPress.org

Ready to get started?Download WordPress

Forums

Query Multiple Taxonomies
QMT with multiple custom post types and taxonomies (3 posts)

  1. paulstanely45
    Member
    Posted 3 years ago #

    Hello,

    I seem to be missing how to properly implement QMT, or I am doing something wrong.

    I have a custom WP template I have made up, so I don't have any widgets enabled. I have heard mention of a drill-down menu, I am not 100% what that is exactly.

    Essentially what I have is a custom post type made using the CUSTOM POST TYPE UI and also created some taxonomies with it.

    What I really need to be able to do is be able to query multiple custom post types, and match several taxonomies against an array of terms.

    Do I need some sort of code on my page in order for this to work? Do I need a widget to be enabled?

    This is the code I have,

    $post_type = array('Blu-ray Players', 'DVD Players');
    $args = array('post_type' => $post_type,
    		'disc-player-brand' => 'lg');
    $m = new WP_Query($args);

    What I would like to do is be able to do something like this

    $post_type = array('Blu-ray Players', 'DVD Players');
    $args = array('post_type' => $post_type,
    		'disc-player-brand' => array('lg','sharp'));
    $m = new WP_Query($args);

    So that it look for blurays and dvds of those two brands, however, I just can't get it to work.

    I tried replacing array('lg','sharp') with "lg,sharp" but to no success.

    Can any help be offered?

    I have the plugin activated. Running the plugin version 2.0.1 and WP 3.0.1

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    The latest version of the plugin is 1.3.2 so maybe you're running another plugin by mistake?

  3. paulstanely45
    Member
    Posted 3 years ago #

    d'oh!

    it was another plugin off your website.

    thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic