How to have two different search results templates
-
Hi,
I need your help with templates. I’m building a custom theme for a client, who has requcted a “Our People” directory (the poeple who work for the company). I have used the write post (with a few mods) to get this working for them. No issues there.
However, I need to have two different search results page templates. One will be a “standard” results page as you know and love, however I also need a custom search result page that returns the result from a search on our people, this would then look different to the standard results page.
Any ideas on how to do this? I have looked at the codex and I’m not a great php coder so not too sure how to use the examples they give on the normal template pages/post to help me.
I see there is “is_search()” but can you tell it that…
if
this is a search from this category or this category then show the results like this
else
show the results like this.
- The topic ‘How to have two different search results templates’ is closed to new replies.