SOLVED: Templates appear in search results

Bricks Version: 1.5.4
Browser: Chrome
OS: Windows
URL: (a link to a page that illustrates the issue would be really helpful)

I inserted the “Search” element on the header of my website. When I go and search a word which is contained in the title of a template, it shows up on the results. Not sure if it’s a bug, but I don’t think this should be the correct behaviour

2 Likes

I would create a search results page template, insert the post or custom loop there, and then in the query select which post types to display. This should help.

screenshot-try.bricksbuilder.io-2022.10.13-09_09_40

3 Likes

Hi Giovanni,
Thanks a lot for your report!

Templates are nothing more than a Custom Post Type, which is why they show up in search results. However, I think they should not show up if the templates are not “public”. I’ll add this as an Improvement to our ToDos.

Claudio’s advice is recommended either way, as you are completely free to determine the appearance (and results).

Best regards,
timmse

3 Likes

Hi Giovanni,
We’ve fixed the issue in Bricks 1.5.6, now available as a one-click update within your WordPress Dashboard.

Please let us know if you are still experiencing issues.

Best regards,
timmse

Works flawlessly!
Best regards, Giovanni