• Resolved lms94

    (@lms94)


    I have a tax_query defined to filter my results and my tax_query looks like this:

    
    $tax_query = [
        'relation' => 'AND',
        // Match ANY categories grouped by "Parent Category 1"
        [
            'taxonomy' => 'project_categories',
            'terms'    => 'cat-slug1, cat-slug2, cat-slug3',
            'field'    => 'slug',
            'operator' => 'OR',
        ],
        // AND match ANY categories grouped by "Parent Category 2"
        [
            'taxonomy' => 'project_categories',
            'terms'    => 'cat-slug4, cat-slug5, cat-slug6',
            'field'    => 'slug',
            'operator' => 'OR',
        ],
    ];
    

    So I want to duplicate the functionality I mentioned above with this plugin as so could I replicate this functionality under the “Custom Fields (Meta_Query)”?

    • This topic was modified 9 years ago by lms94.
    • This topic was modified 9 years ago by lms94.
Viewing 1 replies (of 1 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @lms94,
    You can use the Taxonomy query parameters in the Shortcode Builder. Not Meta query.

    Do you see the Taxonomy options?

Viewing 1 replies (of 1 total)

The topic ‘tax_query options’ is closed to new replies.