Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

Reverse post order (oldest first) without affecting static homepage


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
 
Prev Previous Post   Next Post Next
  #1  
Old Jan 22, 2011, 08:10 AM
tomsimone
 
4 posts · Jan 2011
Reverse post order (oldest first) without affecting static homepage

Hello,

Really hope someone can help me with this...

I want to reverse the order of the posts on my posts page.

I've tried this solution:
In your index.php file, look for this bit of code:

<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>

Right before that line, add this code:

<?php query_posts($query_string . "&order=ASC") ?>
I also tried putting this line of code in ATO>center column>above loop.

The problem is that the static homepage starts displaying posts as well, rather than the static text I want it to.

Please could someone help me out with this?

Many thanks,

Tom
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Atahualpa and share this/add to any plugins affecting recent post widget in sidebar awoppub Plugins & Atahualpa 1 Jun 29, 2010 05:28 AM
my-category-order plugin order by 'order' not working darrenk Page & Category Menu Bars 3 Mar 24, 2010 07:56 AM
[SOLVED] First/oldest post link? ctenos Sidebars & Widgets 4 Sep 6, 2009 10:48 AM
Posts display in reverse order? WayneEarl Installing & running WordPress 1 Aug 10, 2009 05:38 AM
Atahualpa: Static homepage two times caoba Page & Category Menu Bars 1 Mar 13, 2009 12:52 AM


All times are GMT -6. The time now is 09:38 PM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.