StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Reversing post page order /Please help soon if possible, due in 20 hours! (http://www.studiopress.com/support/showthread.php?t=120894)

designsbymkp 10-14-2012 09:39 PM

Reversing post page order /Please help soon if possible, due in 20 hours!
 
Thank you for viewing my post! I have a very important client, and he just called me and asked me to change his News page (a post category as a menu page) so that the oldest post shows up first, new posts last. I have looked up a lot of stuff, but one made every page the news page, and one just made the home page the news page, no matter what I do. Is there some good way to do this?
I did this (safe link) and it worked, but made my front page the news page instead of the static page I created and had selected. Is there someway to do this better, or get it working, or at least get it baxk to at least going to my static home page while leaving the rest work?
Only problem is, this is for the freemasons, and my client needs to show it off tomorrow at 5pm Eastern Time..
Any help is appreciated soooooo much! Here is the website right now with the function from the first tutorial in my functions.php
Thanks!!!

andrea_r 10-15-2012 07:01 AM

Quote:

or at least get it baxk to at least going to my static home page while leaving the rest work?
Under Settings -> Reading what do you have selected?

Also - you are allowed to tell clients, "Sorry, I can't do that in this timeframe." :)

designsbymkp 10-15-2012 11:50 AM

Thank you for the reply! Under those settings, I do have the static page selected with the page I want. Before I did the method to reverse the post order, everything was fine. I do not understand why it wants to show the posts page at home when it is not selected that way.
Also I know, and it looks like I might have to tell them that, but this is a HUGE client and if I can make him happy, I am about to score a lot more business tonight at our meeting, so you can see why I am stressing a little haha.

andrea_r 10-15-2012 12:06 PM

Well it;s hard to say why it did that on your site without knowing how you added the code, exactly. because that would be the way to do it.

Maybe leave a comment on that page and ask the author.

designsbymkp 10-15-2012 12:11 PM

I did, but it does not look like they really keep up with it near as much. If this helps, here is the text I added to the functions.php, the only thing I had to do at all:

add_action('genesis_before_loop', 'child_before_loop');
function child_before_loop () {
global $query_string;
query_posts($query_string . "&order=ASC");
}


Any chance you see anything with this that would cause it? Thank you so much for your time!

designsbymkp 10-15-2012 12:36 PM

Thanks for all your help! Luckily I found another method! Not sure why it caused those problems, but did more research and found a Plugin that actually worked perfect. Here is a link just in case it might help anyone else:

http://wordpress.org/extend/plugins/default-sort-ascend/

Thanks again!

andrea_r 10-15-2012 01:02 PM

Great since the issue is resolved, I'll close the thread. If you have more questions, please open a new thread.


All times are GMT -5. The time now is 05:07 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.