Forums › Forums › Search & Filter Pro › Error: You can only select 1 post type(s) – or change your display method
Tagged: archive, Beaver Builder, Site-wide Search
- This topic has 1 reply, 2 voices, and was last updated 3 years, 12 months ago by Trevor.
-
Anonymous(Private) November 24, 2020 at 10:56 pm #267711
Hi team,
Is there a way to create a site-wide archive search for multiple CPT’s i.e posts, pages and products?
I have managed to create individual search forms for each CPT to search within the results but looking for a sitewide search in the navigation.
Thanks,
Shane.Trevor(Private) November 25, 2020 at 3:04 pm #267788You could use As an Archive or the Shortcode methods, or, if you use any of the page builders we support (and your tags on this post suggest you are using Beaver Builder, yes?):
https://searchandfilter.com/documentation/3rd-party/elementor/
https://searchandfilter.com/documentation/3rd-party/beaver-builder/
https://searchandfilter.com/documentation/3rd-party/divi/
https://searchandfilter.com/documentation/3rd-party/wpbakery-page-builder-formerly-visual-composer/you could use the integration extension plugin and associated display results method for those.
Be aware that taxonomies (including categories and tags) should be used in WordPress only for a single Post Type, and thus using taxonomy fields in the form could cause posts that the taxonomy is not associated with to disappear from the results. It is for this reason that searches dedicated to multiple post types are not often used on sites. Custom fields CAN be defined across multiple post types and searched safely without this happening.
If you are using only a search box, that could work, but you might need to also use Relevanssi to extend the search to all Post Types, depending on how your theme limits standard WordPress searches. See here:
https://searchandfilter.com/documentation/3rd-party/relevanssi/
-
AuthorPosts