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 » Sidebars & Widgets »

Category ordering in widget


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

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Feb 16, 2009, 04:24 PM
pminner
 
1 posts · Feb 2009
Category ordering in widget

Hi Flynn!

I really like what you've done in creating Atahualpa. It produces a very clean, professional site and I've donated to show my support for your efforts.

I've been able to figure out how to do everything I need to so far to get the customization desired with the exception of ordering the titles of the categorys/subcategories in the category widget. The categorys/subcategories are always ordered alphabetically, regardless of the order I create them in. I can rename them with a number first, but this is asthetically unpleasing.

An example for displaying the menu for meeting minutes:

Current
Minutes
--April
--February
--January
--March

Desired
Minutes
--January
--February
--March
--April

Do you have any recommendations for ordering the category(s)/subcategories using the category widget or is there a different approach you could recommend?

Thank you!

Paul
  #2  
Old Feb 16, 2009, 08:44 PM
Flynn's Avatar
Flynn
 
3,754 posts · Oct 2008
Munich, Germany
You could add this either manually into the top or bottom of a sidebar, but then you'd have to repeat that with each Atahualpa update, so I'd recommend to add the following code by using the http://wordpress.org/extend/plugins/php-code-widget/ PHP widget. Install it and put it into a sidebar and put this into the PHP code widget:
PHP Code:
<?php wp_list_categories('title_li='); ?>
To configure the output see http://codex.wordpress.org/Template_...ist_categories

For instance
PHP Code:
<?php wp_list_categories('title_li=&orderby=name&order=ASC&show_count=1'); ?>
The orderby=name and order=ASC is what you want and it should be the default, so the first example should work for you, but if it doesn't use the second example which explicitly sets those parameters.

Thank you for the donation and let me know if this doesn't work or you wanted something different

  #3  
Old Mar 15, 2009, 07:37 AM
paulae's Avatar
paulae
 
1,330 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
I was having the same problem. I found this nifty plugin which lets you simply drag and drop your categories in any order you like, when in the category mode.

http://wpguy.com/plugins/category-order/

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing category order in category menu bar, not in sidebar cat. list paulae Page & Category Menu Bars 13 Mar 30, 2011 05:36 PM
[SOLVED] category widget can not display inline in v3.4 duping812 New Versions, & Updating 5 Jul 11, 2009 11:10 AM
Category title on category page, not on each post excerpt kicker paulae Excerpts, Read more, Pagination 4 Jun 22, 2009 11:33 AM
category widget reallylost Sidebars & Widgets 1 Jun 22, 2009 08:58 AM
Styling Category Widget BigG Sidebars & Widgets 3 Apr 16, 2009 11:53 AM


All times are GMT -6. The time now is 05:40 PM.


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