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:

It was generated from this WP_Query:

$args = array(
    'post_type' => 'mec-events',
    'tax_query' => 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.


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

Hello @santosfel5,

Please let us know how it goes.


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