Displaying Search Results
-
I am trying to make an Archive template that displays the search results for a particular query. I have done a similar thing before, looping through a particular Category, but I cannot figure out how to display search results.
This is how I did the category loop:
[loop type=post category='News'] <div> <h2>[field title]</h2> <div>[field content]</div> </div> [/loop]
I also managed to get the search term to show up like this:
[pass global=query fields=s] Search Results for: {S} [/pass]
Any ideas how I could use this to display a loop of applicable posts?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Displaying Search Results’ is closed to new replies.