wp_query post_status override
-
Hello,
First thank you for this plugin.
I am using wp_query to combine a taxonomy filter with a search query, which happens whenever the user interacts with the sidebar of this page mentioned and screenshoot below. I am using this plugin to facilitate the search in the custom fields of these posts (events).
The post_status is being used to differentiate future (Futuros) from past (Passados) events, and two separate wp_queries are done to populate the respective feeds. But since I added your plugin now whenever a search query is present in the wp_query the post_status seems to be overwritten to include all types, and the same results, independent of the post_status, are showed in both feeds.
This faulty behaviour does not happen whenever the wp_query considers just the taxonomy filter, which is subjected to the same logic in the caller function, so I understand that the culprit must be the filter of this plugin.
I am not finding the source of this issue in the plugin’s code. Please help!
Thank you once again
Screenshots:
https://drive.google.com/file/d/1ZucH5wPdF_TplNOm_R4KxhxRFZ4AYgUw
https://drive.google.com/file/d/1u28xT_oS6F6hJRoZKbcYOXQuq8NPyI4F/view
The page I need help with: [log in to see the link]
The topic ‘wp_query post_status override’ is closed to new replies.