Forum

Thread tagged as: Question, Blog

Blog Post Search?

I've been reading up on Perch search - https://docs.grabaperch.com/docs/search/ Also looking into the perch/templates/search files. I see that you can specify a directory or app to search in. However I'm not sure this format of search is what I'm looking for. I want the search results to have the same information as my Category results. Post title, post thumbnail, excerpt, and link to the single post.

Can <perch:blog> tags be used in the search results template?

Or

What would be the best way to use perch_blog_custom() to search for a term in post titles and postDesc?

Or

Should I ask the end user to be mindful of search terms and just perch_blog_custom() against post tags? (Probably easiest but maybe not the best search)

Thanks again!

Nicholas Nelson

Nicholas Nelson 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

If you want to filter posts, use perch_blog_custom()

If you want general text search, use perch_content_search()