Hello there! First post ever, I am entering some data in the additional parameter on the search field for one of my custom post archive page. I put Key: {post_type} and Value: Food Truck and it doesn’t filter the search result at all. What I am doing wrong or missing?
Thanks a lot!
Can you be a little more specific?
What search field? Query searchfield? Meta query? On a normal searchfield don’t seem to be additional parameters.
{post_type} might give the id or something
Is food truck name of a post? Might it be in the content of a post, is it a taxonomy?
maybe make a screenshot of the part not working…
Hi Ferry, thanks for the quick response. Sorry, I should have been mor precise. Here are some answers to your questions:
This is a normal search field selected (right one) with the settings showing when selected (left one)

There is the Additional Parameters section showing and I thought it was to create a specific narrow search for this particular search form. So, I wanted to show only the custom post type I created named foodtrucks to show up in the search results.
Unfortunately all post are showing in the results. Maybe these extra parameters are not meant for this? Thanks a lot for your help.
A query on the food trucks posttype seems more appropriate then. Just getting all the food trucks. And then the filter searchfields attached to that queryfield will then only search the food trucks posttype.
Do you want to show the trucks or only have them found on search?
To just search for them without listing them use live search
Make sure there’s a place to put the results
I just want them to be found in the search but Bricks allow me to have only one Search Result page active, so if I do the query only on food truck then when searching for regular blog post, nothing come up.
Do you know what is the Additional Parameters are supposed to do for the search field? Thanks!
Hi Ferry! Forget it I found a solution:
- I create a second result page where the query is only looping Food Trucks
- Create a new page name Search Food
- Apply the condition to the result page template to show only on the Search Food page
- Paste the Search Food page URL in the action URL of the search field
Thanks for your patience and help it’s really much appreciated.
it look so simple once I find the solution. Hope it will help others, I saw kind of the same question from Bricks users here and there.
Not quite sure but it seems to add those to the search URL which is a part of WordPress and not specifically Bricks. Those usually work as a filter to narrow the results. But there’s not much documentation to be found on this.
I just tested some, and it does search the title of all post types.
This is the best i could find about how to add parameters to search limit to certain categories of times
https://wordpress.stackexchange.com/questions/69271/search-url-parameters-query
Thanks again for your help Ferry!
Hi Bricks family! Actually I was wrong, creating 2 separate Search Results page with 2 different loop queries doesn’t work.
After a long search, here’s a simple solution I found (without extra coding ) for:
How to create custom search results page for custom post type
First only create one template that is a Search Results. More than one available in your template list will create bugs. You can do whatever you want for the design but the loop query on the result cards needs to have Query Type = Posts and Post Type = Post.
Then you need to add an Additional Parameters to your Search form (Not Filter - Search) that narrow the search only the post type of your choice.

In my case is foodtrucks but you can also put post to get only your regular WordPress posts. Really important to check the url of your custom post section to get the precise way your post type is written.
Hope it will help some, I search so long to achieve this with a simple solution, no extra coding. Cheers!
