Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   [SOLVED] Post Sorting Old(Top) to New(Bottom) (http://forum.bytesforall.com/showthread.php?t=3395)

Walt Sep 11, 2009 10:06 AM

[SOLVED] Post Sorting Old(Top) to New(Bottom)
 
Okay, I'm feeling really dumb right now. I can't figure out why posts are sorting from OLD to NEW.

Is this a option in Atahaulpa or in WordPress?


Thanks in Advance.

juggledad Sep 13, 2009 06:37 PM

neithor - a plugin perhaps?

Walt Sep 14, 2009 12:03 PM

I figured it out. I'm surprised someone else hasn't asked or answered this question.

v 3.4.2

Open the theme Index.php

Find (Line 14ish)
<?php query_posts($query_string . '&orderby=date&order=ASC'); ?>

change to;

<?php query_posts($query_string . '&orderby=date&order=desc'); ?>


Save it! Your new posts show be at the top of the page and older posts at the bottom.:)

juggledad Sep 14, 2009 12:09 PM

ummm that code is not in index.php in Atahualpa 3.4.2

Walt Sep 14, 2009 12:29 PM

@Juggledad - You're right, I must have been on the crack! I think I added the code awhile ago, with that said.

To change your posts to Ascending to Descending order

v 3.4.2

Open the theme Index.php

Insert code around line 14ish... (I'm not a coder so this may not be the best place)

<?php query_posts($query_string . '&orderby=date&order=ASC'); ?>

Save it! Your OLD posts should be at the top of the page and newer posts at the bottom.:)


All times are GMT -6. The time now is 07:43 AM.

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