Hi all I am newbie to wordpress I am using the wp_list_categories in the sidebar to display the categories . How can i display thus categories sort by id any one much appreciated...
<?php wp_list_categories('exclude=73');?>
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communitywp_list_categories
takes an orderby
parameter which accepts :
So the default behavior of wp-list-categories is to order by ID but you can specify that like so:
<?php wp_list_categories(array('exclude'=> 73,'orderby' => 'ID'));?>