ok so this is what i mean by this. on a the category archive page it will list all the category so that it look like this:
"a"
- ---apple
- ---answer
"b"
- ---ball
- ---big
and so on. and this is wordpress i am talking about. thank you very much
ok so this is what i mean by this. on a the category archive page it will list all the category so that it look like this:
"a"
"b"
and so on. and this is wordpress i am talking about. thank you very much
You can retrieve a list of your categories using the get_categories()
function. You can pass an array of parameters to the function that will allow you to specify what sort order you would like used, among other things.
It should look something like this:
$defaults = array('type' => 'post',
'child_of' => 0,
'orderby' => 'name',
'order' => 'ASC',
'hide_empty' => true,
'include_last_update_time' => false,
'hierarchical' => 1,
'exclude' => ,
'include' => ,
'number' => ,
'pad_counts' => false
);
$categories = get_categories($defaults);
For more information on parameter values and using the returned categories, check out this page in the Wordpress codex.