Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thank you so much !!!

    @eight7teen
    you don’t need to downgrade to 2.7.1. Until a patch for this, you can populate your array yourself in functions.php or controlpanel.php

    $zm_categories_obj = get_categories('hide_empty=0');
    $zm_categories = array();
    foreach ($zm_categories_obj as $zm_cat) {
    	$zm_categories[$zm_cat->cat_ID] = $zm_cat->cat_name;

    instead I’ve got this now:

    $zm_categories = array();
    $zm_categories[0] = "Photos";
    $zm_categories[1] = "Wordpress";

    You have to replace “Photos” and “WordPress” by the name of your categories. After that you can select the category in the theme control panel like before…

    Cool You’ve got the same problem, I’m not alone !!!!!

    I use the theme Scarlett. One of the feature is to choose a category from the admin panel to display a photo gallery.

    Now I can’t choose any more after upgrading to 2.8 from 2.7.1

    $zm_categories_obj = get_categories('hide_empty=0');
    $zm_categories = array();
    foreach ($zm_categories_obj as $zm_cat) {
    	$zm_categories[$zm_cat->cat_ID] = $zm_cat->cat_name;

    This code is from controlpanel.php and it’s load by functions.php like this:
    require_once(TEMPLATEPATH . '/controlpanel.php');

    For the moment I need to replace the variable by the value in controlpanel.php code… I hope a solution.

    If think we are really a lot to encounter this problem.

Viewing 3 replies - 1 through 3 (of 3 total)