Title: Issue with WP_Query
Last modified: May 11, 2020

---

# Issue with WP_Query

 *  Resolved [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [6 years ago](https://wordpress.org/support/topic/issue-with-wp_query/)
 * Hi there,
 * I am the author of the [Advanced Ads plugin](https://wordpress.org/plugins/advanced-ads/)
   and have found a conflict with Modern Events Calendar Lite.
 * Advanced Ads comes with a condition to show ads based on Specific Pages. You 
   can install the plugin, create a new ad, then choose “Specific Pages” in the 
   Display Conditions section, and search for a post.
 * That search is broken as soon as MECL is enabled.
 * Advanced Ads uses the `wp_link_query` WP core function within `wp-includes/class-
   wp-editor.php` when looking for posts in an AJAX request. When I log the query
   at the end of that function, it includes `advads_posts.post_type = 'mec-events'`
   which breaks the search for all other post types.
 * Please check where you hook into WP_Query and make sure that you only add or 
   change the `post_type` attribute where needed.
 * Thanks,
    Thomas

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [webnus](https://wordpress.org/support/users/webnus/)
 * (@webnus)
 * [6 years ago](https://wordpress.org/support/topic/issue-with-wp_query/#post-12840838)
 * Hi [@webzunft](https://wordpress.org/support/users/webzunft/),
 * Thanks for contacting us,
 * This issue is forwarded to the developer team, it will be checked and we will
   let you know the result.
 * Best Regards
 *  Plugin Contributor [webnus](https://wordpress.org/support/users/webnus/)
 * (@webnus)
 * [6 years ago](https://wordpress.org/support/topic/issue-with-wp_query/#post-12843330)
 * Hi [@webzunft](https://wordpress.org/support/users/webzunft/),
 * Thank you for your report,
    It will be fixed in the next updates.
 * Best Regard
 *  Thread Starter [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [6 years ago](https://wordpress.org/support/topic/issue-with-wp_query/#post-12892053)
 * I wanted to confirm that the issue is fixed. Thanks!
 * Thomas
 *  Plugin Contributor [webnus](https://wordpress.org/support/users/webnus/)
 * (@webnus)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/issue-with-wp_query/#post-12913499)
 * You’re welcome,
 * We are glad it’s fixed 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Issue with WP_Query’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/modern-events-calendar-lite_e2f4ff.
   svg)
 * [Modern Events Calendar Lite](https://wordpress.org/plugins/modern-events-calendar-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/modern-events-calendar-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/modern-events-calendar-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/modern-events-calendar-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/modern-events-calendar-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/modern-events-calendar-lite/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [webnus](https://wordpress.org/support/users/webnus/)
 * Last activity: [5 years, 12 months ago](https://wordpress.org/support/topic/issue-with-wp_query/#post-12913499)
 * Status: resolved