conflict with other wp_query loop
-
Hi
I have noticed a weird conflict with other wp_query running on the same page where event is called to display.
we have added a wp_query via theme hooks and noticed that you have used the method of appending the html to the_content filter. this makes the content to append to other loops too. where the_content(); is called
add_filter( 'the_content', array( $this, 'append_content' ), PHP_INT_MAX - 1 );
which conflicts with other wp_query we are running which leads to big disaster since only other option is to echo the shortcode manually and add the autop as separate filters.
I hope there is an option such remove filter is available to avoid this conflict. Can you please advise us, since this is a plugin we are going to release shortly.
https://www.ads-software.com/plugins/all-in-one-event-calendar/
- The topic ‘conflict with other wp_query loop’ is closed to new replies.