I am creating a plugin whichg will take the events and allow them to be exported in a xls file format.
Issues is when i do a wp_query on the post type espresso_events it is failing and given me this error.
Fatal error: Call to a member function is_espresso_page() on a non-object in /home/sites/epixdev1.co.uk/public_html/hostworld/wp-content/plugins/event-espresso-core-reg/core/CPTs/EE_CPT_Strategy.core.php on line 337
Why is this? but if i change it to post to get nomal posts it works fins he the code i am using:
I don’t know, the same code isn’t throwing the same error for me. You could try either of these:
1) Add 'suppress_filters'=>false, to the $args array
2) change $wpevents = new WP_Query( $args ); to $wpevents = new EE_Event_List_Query( $args );
Viewing 1 reply thread
The support post ‘Fatal error: Call to a member function is_espresso_page() on a non-object’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.