Thesis theme, looking to reverse post order, or to sticky a single post on home page

Blake

New member
Jul 5, 2010
5
0
0
I'm fairly proficient at coding, but Thesis is driving me nuts with this normally simple task...

I need to set up Thesis to post in chronological order...Or...better yet, to be able to have a "single" sticky post on the home page.

With almost any other theme, I can place this code before the loop in the index.php file: <?php query_posts($query_string . "&order=ASC") ?> ,to reverse the post order.

I can also place this code in the index.php to allow a single sticky post on the home page: query_posts(array('post__in'=>get_option('sticky_posts')));

However, I can not figure out where to place either of these codes in Thesis. I've pretty much tried every position possible in the loop.php file and in functions. There may be a hook to accomplish this, but absolutely no one has written a tut on this.

I'd really appreciate it if one of you guys could help me out. I just need to know what file and position to drop whichever code in...

Thanks in advance.
 


I'm not sure about how to go about stickying a post, but you could add static content in the features box and make sure it's on the homepage only with if (is_home()){ }.
 
Thanks Mike. That's an interesting work around...I'll give it a shot and see how it turns out.
 
there's a template for the home page called home.php

Template_Hierarchy.png
 
There is a sticky post checkbox in the edit post screen. Couldn't you just use that?

Sorry if this isn't solving your problem, I'm no help with hacking WP.


When you're going the sticky post route, yes, you have to select which post to sticky on the home page. However, WP doesn't allow you to have a "single" post on the home page when you select a post as sticky. No matter your settings, WP forces a second post on the home page in the form of an excerpt (depending on your settings). That is what the code is for in my OP...I'm trying to get rid of that second post. But thanks anyway...

Refrozen: Yeah, that was funny.

Thanks Garrett...I wish Thesis was set up that easy. Anything that's considered normal in any WP theme is not found in Thesis, unfortunately.