• Resolved pmdferreira

    (@pmdferreira)


    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

    • This topic was modified 3 years, 2 months ago by pmdferreira.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Sumit Singh

    (@5um17)

    Hi,

    WPES modify the post status only when attachment are included. But I see you marked it resolved. I hope you found it.

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘wp_query post_status override’ is closed to new replies.