Thread Starter
arnii
(@arnii)
Okay, by using this piece of code;
<?php
$cur_cat_id = get_cat_id( single_cat_title("",false) );
print($cur_cat_id)
?>
I can get the category id!
But this doesn’t work;
<?php wp_list_categories('orderby=id&show_count=0&use_desc_for_title=0&child_of=$cur_cat_id&title_li=' . __('') . ''); ?>
I assume it’s a problem with the wp-list-categories and the variable. But what it is, I can’t figure out…
Any ideas – anyone?
KS
(@karl19)
Have a look at this thread, it might help you part of the way.