Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

On this search results page: http://p2reloaded.com/?s=versions&search-submit=Search

I'd like to inverse the order of the results to start by newest post date first at the top of the page. Right now it's showing older posts first. Is there a way to specify that in the WP search function through a URL parameter?

BTW, I am had to install the Relevanssi plugin to get WP (or the theme?) to search using tags.

Thanks! Noel

share|improve this question
    
I've just checked your link, and the newest posts are at the top... –  Simon Blackbourn Feb 27 '11 at 22:14
    
Yeah, I noticed that too, it was weird, a few minutes before that the results were showing the opposite order. Not sure what Relevanssi plugin is doing but I kind of need it since the theme's search function wasn't searching tags at all tags. –  noel saw Feb 27 '11 at 22:47

1 Answer 1

up vote 1 down vote accepted

WordPress will order search results by newest post first by default, so if your results are in a different order then it looks like another plugin is affecting them.

Have you tried searching with all other plugins disabled?

If you're using Relevanssi, then it won't order results by date as Relvanssia overrides this with its own weighting algorithm instead (which is the whole point of using Relevanssi).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.