Click here to register or to donate.Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

[SOLVED] Order Posts by Modified Date

I'm hoping someone can point me in the right direction for editing the loop in the Atahualpa theme

I'd like to order ALL the posts on my blog - www.ddwt.co.uk - by date modified order, but can't find the relevant code in the loop (or the loop for that matter!) to add the 'orderby=modified' code to.

I'm using WP 2.8.4 and Atahualpa 3.4.1

Can someone help me please?

Thank you

#2

Aug 20, 2009, 04:55 AM

juggledad

23,526 posts · Mar 2009

OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome

The code you are looking for is in the WordPress base code. While Atahualpa does set up some of the SQL selects (populat posts, popular in category), it relies on the normal 'loop' code in WordPress to retrieve posts.

You will have to look into the Wordpress code - you can search for 'FROM $wpdb->posts' - to find the code that does the select and change the 'order by'.

You also might try looking to see if there is a plugin that which will change the order