Der WupperPirat
Member
Posted 5 months ago #
If you need the get_categories() stuff for something in the backend like Theme Options you can do the following 'til the new version is out:
function my_list_cats() {
global $categories;
$cats_array = get_categories('hide_empty=0');
$categories = array();
foreach ($cats_array as $cats) {
$categories[$cats->cat_ID] = $cats->cat_name;
echo '<p> Cat name: ' . $cats->cat_name .'<p>';
}
}
add_action('init', 'my_list_cats');
Cheers,
Chris
wingheaded
Member
Posted 5 months ago #
Well...
I'm having the same problem but worst.... I don't know has much as you guys do about php.
Can anyone please tell me what to do to fix the problem in the Epsilon theme in order to get the categories to set the sliding bar.
It would be very appreciated if someone could help me...
many thanks
Hi Der WupperPirat
How to use your code in Theme Options?
Is this supposed to be working now with 2.8.1 or do I need to make some code changes in controlpanel.php and functions.php?
There are still bugs in get_categories as far as I'm concerned. It was working fine for me then all my customers upgraded to 2.8.4,5 or 6 and now it doesnt work.
My usage is to retrieve children of a parent and despite the fact that the fed ID of the parent has children, nothing is return by this function. Even in the most basic use it is no longer working for me and thats after 16 hours trying to fix it...and counting! lol
Ryan