The Search Results template controls how the search results page looks on your site. These results are displayed when a user interacts with a Search Form or uses search functionalities on your site.
You can create a Search Results template in Breakdance with the following steps:
When designing the Search Results template, we recommend using a Post List element set to use the default query. This can be done with the following steps:
Now, when you search for content on the front end, you’ll see the Post List element displays the results.
If you want to add Breakdance Content to Search results, you can use your preferred Search plugin and set it to look for the _breakdance_data
custom field. The following tutorial covers working with Search plugins.
If you want to use a customized query instead of the default query for a Loop element, you can use the get_search_query function and the s
parameter from wp_query to filter results.
An example of this may be found in our Array Query documentation.