Displaying MEC Events in Looper by a Specific MEC Tag

I’m attempting to display MEC Events in a looper by a specific tag. The tag is Career Services. Here is a picture displaying the looper I’m trying to get to display events.

This is the query I created to pull the MEC events tagged with Career Services:
post_type=mec-events&tax_query%5B0%5D%5Btaxonomy%5D=post_tag&tax_query%5B0%5D%5Bfield%5D=slug&tax_query%5B0%5D%5Bterms%5D=career-services

It was generated from this WP_Query:

$args = array(
    'post_type' => 'mec-events',
    'tax_query' => array(
        array(
            'taxonomy' => 'post_tag',
            'field'    => 'slug',
            'terms'    => 'career-services',
        ),
    ),
);

var_dump( http_build_query( $args ) );

Am I missing something here?

Hello @santosfel5,

Thanks for writing in! The query string is correct. I am not sure why it does not display the events correctly. Please provide us with the URL of the site and access to it. It will also help if you include which layout is it so that we can investigate. You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
- Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

Best Regards.

Hi @ruenel I’ve added the secure note.

Hi @santosfel5,

I have checked the query by adding it into the Test page and found that it fetches the data accordingly. Please find the Test page URL in the secure note.

Thanks

@tristup Okay, I’ll have a look at the test page now.

Hello @santosfel5,

Please let us know how it goes.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.