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
  #1  
Old Jan 22, 2011, 07:10 AM
tomsimone
 
4 posts · Jan 2011
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
  #2  
Old Jan 22, 2011, 09:40 AM
tomsimone
 
4 posts · Jan 2011
Any help much appreciated.
  #3  
Old Jan 22, 2011, 09:56 AM
lmilesw's Avatar
lmilesw
 
10,076 posts · Jul 2009
Central New York State USA
I wouldn't mess with the index.php file. You might want to try this plugin http://wordpress.org/extend/plugins/...ting-reloaded/
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #4  
Old Jan 22, 2011, 03:04 PM
tomsimone
 
4 posts · Jan 2011
Hey, thanks so much for that link, I'd tried a few other plugins but was left frustrated.

With Post Sorting Reloaded the interface is very easy to understand with links to lots of documentation.

At first I tried is_MyCategory() as Condition 1 sorted by post_date ASC , but this made the whole site fail to load.

I then changed Codition 1 to is_home() for no good reason, and this worked.

These terms are obvious when you start using the plugin and I include what I did here in case it works for anyone else. I don't know the first thing about php.

Thanks again Larry.
  #5  
Old Jan 22, 2011, 03:41 PM
lmilesw's Avatar
lmilesw
 
10,076 posts · Jul 2009
Central New York State USA
You can also check here for the syntax for conditional tags. For instance if you wanted to sort the archive page for a category with an ID of 23 you would use the following.
HTML Code:
is_category('23')
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

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 04:28 AM
my-category-order plugin order by 'order' not working darrenk Page & Category Menu Bars 3 Mar 24, 2010 06:56 AM
[SOLVED] First/oldest post link? ctenos Sidebars & Widgets 4 Sep 6, 2009 09:48 AM
Posts display in reverse order? WayneEarl Installing & running WordPress 1 Aug 10, 2009 04:38 AM
Atahualpa: Static homepage two times caoba Page & Category Menu Bars 1 Mar 12, 2009 11:52 PM


All times are GMT -6. The time now is 11:16 PM.


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