Plugin interfering with custom post type query
-
I’ve come across a bug.
A client’s site uses a few custom post types, with a custom taxonomy associated with one of those post types. Basically, imagine you have a taxonomy called ‘custom-tax’, which is associated with a custom post type called ‘custom-post-type’. Without The Events Calendar activated, the following type of URL is returning the correct results (where custom-tax is the name of the taxonomy and taxterm is the term queried):
http://example.com?custom-tax=taxterm
With the plugin activated, it’s returning no results. The reason is that the Events Calendar is changing the post types that the query uses.
Without the plugin activated, the post_type bit of the WHERE clause is as follows:
AND wp_posts.post_type = 'custom-post-type'With the plugin activated:
AND wp_posts.post_type IN ('post', 'tribe_events')Let me know if you need any more information.
Cheers,
Eric
The topic ‘Plugin interfering with custom post type query’ is closed to new replies.