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 »

Display posts alphabetically for one category, chronologically for other categories


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
 
Prev Previous Post   Next Post Next
  #1  
Old Jun 6, 2009, 08:10 PM
spencer
 
5 posts · Jun 2009
Display posts alphabetically for one category, chronologically for other categories

I want to display the posts on most of my category pages in reverse chronological order, which is working just fine. But for one category (a glossary of terminology), I would like to display the posts in alphabetical order. I've created a separate category.php file for the glossary, but I can't get the order to change from the order in which I entered the posts. The page in question can be seen at:
http://www.jmek.net/bookbuildersWest...s/?page_id=199.

So far, I've been playing with the following php code in the template page. Is this the right place or should I be elsewhere? What do I need to change (here or elsewhere) to get the posts alphabetized?

if ( $bfa_ata_archives_category_show == "Yes" ) { ?>
<h3><?php echo $bfa_ata_archives_category_title; ?></h3>
<ul>
<?php wp_list_categories('orderby=name&order=asc&title_l i=' .
'&show_count=' . ($bfa_ata_archives_category_count == "Yes" ? '1' : '0') .
'&depth=' . $bfa_ata_archives_category_depth .
($bfa_ata_archives_category_feed == "Yes" ? '&feed_image=' . get_bloginfo('template_directory') . '/images/icons/feed.gif' : '')); ?>
</ul>
<?php } ?>

Spencer
 

Bookmarks

Tags
alphabetize, category, organize

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Uncategoried Category from the Display pkmittal81 Page & Category Menu Bars 2 Apr 16, 2010 08:06 PM
[SOLVED] category widget can not display inline in v3.4 duping812 New Versions, & Updating 5 Jul 11, 2009 12:10 PM
disable links in category menu for parent categories (only childless categories link) qcook2000 Page & Category Menu Bars 0 May 15, 2009 10:09 PM
Categories not showing any posts paulae Atahualpa 3 Wordpress theme 2 Mar 10, 2009 07:35 AM
RIGHT sidebar: Don't display on Categories: Not working Ponics Atahualpa 3 Wordpress theme 6 Dec 27, 2008 07:47 AM


All times are GMT -6. The time now is 06:03 PM.


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