If I search archives with custom taxonomies I get the correct posts widget info displayed(using any Posts widget available). But If I search archives with tags/categories, any sidebar/footer widget that queries posts gets me ALL posts including “excluded from search” post-types and “custom menu-ids”, etc…
If I change my custom menu, create a post in a hidden post type, these appear under Recent Posts widget on all archive searches from tags and categories. If I search the archive with a Custom Taxonomy I get only valid posts in the Recent Posts widget.
What is being done differently in the search options? Why do I end-up with different post queries depending on the archive search type?
Curious, Chad
Hi,
You can use this plugin to maximize the search power of your website: SearchWP
Refer to this link in order to integrate the plugin on ajax search: http://kriesi.at/documentation/enfold/use-searchwp-instead-of-the-standard-search/
Thanks,
Nick
I found a workaround.
The search is not the problem. The queries inside the Recent Posts widgets change based on the page/post/search that it appears on. If the widget is on a “Archive for: Category/Tag” page it displays ALL the pages/posts with an ID, including custom menu items and excluded posts.
This does not happen on normal posts/pages or “Archive For: Custom Taxonomies” pages. On those I only get what’s expected without all the excess garbage IDs from the backend.
Glad you were able to find a workaround :)
Let us know if you have any other questions or issues.
Regards,
Devin