WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Theme Epsilon] 2.8 upgrade messed up Categories (35 posts)

  1. Chris
    Member
    Posted 5 years 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

  2. wingheaded
    Member
    Posted 5 years 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

  3. Jauhari
    Member
    Posted 5 years ago #

    Hi Der WupperPirat
    How to use your code in Theme Options?

  4. Roar
    Member
    Posted 5 years ago #

    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?

  5. WebTechGlobal
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic