Include tags to theme search

Hi there!
Guys, clarify please, is it possible to modify the search function for searching by tags (public and internal)?

I’m not sure which search function you’re referring to. Do you mean one of the Handlebars helpers?

Search by posts. Now it is carried out only by the name of the post. I need to find out if it is possible to add tags to the search terms.

Check this video please → The post has internal tag «#animals» but I can’t find post with it.

Internal tags cannot be output on posts, internal tags are deliberately private and are for filtering posts inside your theme or routes file. Public tags can be searched through though, but you’ll need to find out if your search library in your theme can include tags.

Thanks, David! It’s clear now.

1 Like