Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

Changing category order in category menu bar, not in sidebar cat. list


  #1  
Old Apr 9, 2009, 01:40 PM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
Changing category order in category menu bar, not in sidebar cat. list

So far, I have not found a way to re-order the categories in the category menu bar. It's possible in the sidebars, but I don't even care about having the categories there. I have too much other content there already.

Has anyone found a way to do this? It seems that WP keeps the categories in the order in which they were first created. I want them in order of importance and/or popularity, decided by me, not the system.
  #2  
Old Apr 9, 2009, 02:40 PM
Shepherd Jim's Avatar
Shepherd Jim
 
301 posts · Feb 2009
Bristol, midcoast Maine USA
Wow! Ouch! I thought I'd have an easy answer for you; expecting that categories in their menu bar would be treated just the same as pages are in their's. On the Page Menu Bar you can set the sort to key on an arbritary "order no." that you set (and can later RE-set if needs be) for each page.

Apparently, with ordering the categories you're stuck with either order of creation, alphabetic by name or by the "number of posts." That last choice is "close" to your "importance and/or popularity", but you don't determine the ratings and they might fluctuate over time. Sort of disconcerting for your users to have navigation elements moving around periodically.
  #3  
Old Apr 9, 2009, 02:56 PM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
Right. I think it's weird that you can't treat the cats the same as pages in the menu bars. Various plugins let you re-order the lists in the sidebars, but they don't work for the menu bars.

I'm sure there must be a way!
  #4  
Old Apr 10, 2009, 08:03 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
You could install this plugin http://wordpress.org/extend/plugins/my-category-order/

and to the bottom of Atahualpa's functions.php add, without causing blank lines or spaces

PHP Code:
<?php // add new order type "order" to wp_list_categories
function bfa_new_wp_list_categories($string) {
return 
wp_list_categories('order=order&title_li='); }     
add_filter('wp_list_categories''bfa_new_wp_list_categories');
?>
  #5  
Old Apr 11, 2009, 11:47 AM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
Wow, Flynn. I did exactly as you said, and my site was disabled. First I got a blank white screen while in admin, then when I clicked on my bookmark for the front page, I got just a bit of the top blue header, and nothing. Just the spinning rainbow. I couldn't even get back into admin to edit functions.php, so I did it via FTP. Whew.

I wish somebody would create a plugin that would do what I want.

Or can you build this into the next version of the theme? It should be possible to order the cat and page menu bars as desired.
  #6  
Old Apr 11, 2009, 11:13 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Sorry for that, Paula. The plugin mentioned to add the "order" option to wp_list_categories even though I did not try it out.

I'd like to get my to-do list shorter before I add new things.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Changing order of page menu bar ofpeb Page & Category Menu Bars 13 Jan 5, 2012 11:07 PM
[SOLVED] Is it possible to order the items in the sub-level of the category bar? jankph Page & Category Menu Bars 3 Jul 11, 2009 09:23 PM
Show Child Category In Category Menu Bar? mwsmedia Page & Category Menu Bars 1 Jun 29, 2009 06:06 AM
Sorting order of Category Menu Bar joris Page & Category Menu Bars 10 Apr 5, 2009 01:14 PM
Invert sort order in category menu bar? eriksjos Page & Category Menu Bars 2 Jan 20, 2009 01:43 PM


All times are GMT -6. The time now is 11:24 AM.


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