Home › Forums › Calendar Products › Events Calendar PRO › Events Calendar plugin is intercepting with WP All Export
- This topic has 2 replies, 3 voices, and was last updated 10 years, 1 month ago by
Support Droid.
-
AuthorPosts
-
February 29, 2016 at 7:53 am #1083337
Reade Brower
ParticipantHello,
I’m using the plugin The Events Calendar and The Events Calendar Pro as well as Advanced Custom Fields (ACF). I’ve added an ACF for Publications. I want to export events by publication with WP All Export
When I choose to filter export with WP All Export it results in no matches found even though I’ve check the ACF publication box on the event post:
Below is the result of an inquiry to WP All Export that might help with resolving the issue. Please help provide next step(s).
Note: The site in question is not accessible to the public yet. However, I created a demo site with WP All Export with only these items active for testing.Thank you.
…….
I got word back from our developer and the problem is that the Events Calendar plugin is filtering the WP_Query results. So, when WP All Export tries to grab data from the database the Events Calendar plugin is intercepting it when it shouldn’t.Please open a support ticket with the Events Calendar plugin and let them know what’s going on. I’ll paste some more information from our developer that might help with your ticket:
/the-events-calendar/src/Tribe/Query.php
public static function init() {
// if tribe event query add filters
add_action( ‘parse_query’, array( __CLASS__, ‘parse_query’ ), 50 );
add_action( ‘pre_get_posts’, array( __CLASS__, ‘pre_get_posts’ ), 50 );…
}in result next where clause adding to SQL:
string(342) ” AND ( wp_postmeta.meta_key = ‘_EventStartDate’ ) AND wp_posts.post_type = ‘tribe_events’ AND ((wp_posts.post_status <> ‘trash’ AND wp_posts.post_status <> ‘auto-draft’)) AND (wp_postmeta.meta_value >= ‘2016-02-15 12:04:12’ OR (wp_postmeta.meta_value <= ‘2016-02-15 12:04:12’ AND tribe_event_end_date.meta_value >= ‘2016-02-15 12:04:12’ ))”
February 29, 2016 at 7:06 pm #1083661Josh
ParticipantHey Robert,
Thanks for reaching out to us!
If there is a particular query that is being used for the export, you can use the “pre_get_posts()” action on that query to change the “suppress_filters” argument to true. This should prevent any of the filters that we are running for the tribe_events post type from being applied to that query.
Let me know if this helps.
Thanks!
March 15, 2016 at 9:35 am #1089174Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Events Calendar plugin is intercepting with WP All Export’ is closed to new replies.
