Separate Post and Pages from WordPress Search Results

hoover

New Member
I am looking for a way to present search results in my custom wordpress theme.I was hoping being able to present the results like this:Displaying 4 search results for "test"Pages
  • testpage 1
  • testpage 2
Posts
  • testpost 1
  • testpost 2
I wrote a function \[code\]is_type_page\[/code\] that I can use inside the loop (2 loops), but this breaks the pagination functionality.Any suggestions how to achieve this?
 
Back
Top