Posts in alphabetical order
AnonymousNovember 17, 2011 at 6:47 pm #2343
I noticed that several people have asked about reordering posts in the Graphene theme so that they are in alphabetical order. I have just managed to do this so I thought that I would post how I did it for the benefit of anyone else who is trying to do that too. There’s a chicken website by Member ju27 who I think this applies to for example!
What I did was this. In the root folder of the Graphene theme files package I opened the file category.php and near the bottom of this file I added two lines:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('orderby=title&order=ASC&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged);
They need to go just above this:
<?php get_footer(); ?>
Hope that helps someone and that it’s technically correct – it certainly works for me! I’d be grateful, Syahir, if you could confirm that this is an acceptable way to do the job? Thanks!ModMod
Well, bbPress doesn’t really allow for bumping of topics. It’s pretty streamlined software. Just adding another post to the thread shoots it to the top automatically.
In response to your question, however, you can achieve something like this quite easily by forgetting about WP’s standard category archives and using Kalin’s Post List plugin. I wrote a tutorial for this plugin here. It’s quite a powerful plugin that adds considerable functionality to WP.
- You must be logged in to reply to this topic.