WordPress.org

Forums

CPT-onomies: Using Custom Post Types as Taxonomies
[resolved] Using Multiple Tax Queries (4 posts)

  1. VGJ
    Member
    Posted 11 months ago #

    I am having problems with wp_query using a regular taxonomy and cpt-onomy taxonomy in the same query here is the code:

    $tax_query = array(
        'relation' => 'AND',
        array(
            'taxonomy' => 'moviola_status',
            'field' => 'slug',
            'terms' => 'free'
        ),
        array(
            'taxonomy' => 'moviola_webinar',
            'field' => 'id',
            'terms' => $post->ID
        )
    );

    moviola_webinar is the cpt-onomy and works great with and without the second tax query. When I introduce the moviola_status tax_query I only get results from the moviola_webinar. When I look into the actual query from wp_query it does not include moviola_status anywhere. It only shows text for the cpt-onomy and not the normal custom taxonomy.

    Any help would be appreciated.

    https://wordpress.org/plugins/cpt-onomies/

  2. Rachel Carden
    Member
    Plugin Author

    Posted 11 months ago #

  3. VGJ
    Member
    Posted 11 months ago #

    Thank you! I was just looking into those 2 lines. Thanks for the fix. Thanks again for this amazing plugin and incredibly fast support.

  4. Rachel Carden
    Member
    Plugin Author

    Posted 11 months ago #

    No problem. :)

Reply

You must log in to post.

About this Plugin

About this Topic