Issue with WP_Query
-
Hi there,
I am the author of the Advanced Ads plugin 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_queryWP core function withinwp-includes/class-wp-editor.phpwhen looking for posts in an AJAX request. When I log the query at the end of that function, it includesadvads_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_typeattribute where needed.Thanks,
Thomas
The topic ‘Issue with WP_Query’ is closed to new replies.