Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter vdwerff

    (@vdwerff)

    Adnan, this works! And now for real ??
    Thank you very much

    Thread Starter vdwerff

    (@vdwerff)

    Sorry! I concluded to early, it seems the error is still happening.

    edit;
    this is the code now:

    }
    $mobilereparatie_walker= new mobilereparatie_walker();

    class my_Walker_CategoryDropdown extends Walker_CategoryDropdown {

    function start_el(&$output, $category, $depth, $args, $id) {
    $pad = str_repeat(‘ ‘, $depth * 3);

    $cat_name = apply_filters(‘list_cats’, $category->name, $category);
    $output .= “\t<option class=\” ggg level-$depth\” value=\””.$category->slug.”\””;
    if ( $category->term_id == $args[‘selected’] )
    $output .= ‘ selected=”selected”‘;
    $output .= ‘>’;
    $output .= $pad.$cat_name;
    if ( $args[‘show_count’] )
    $output .= ‘  (‘. $category->count .’)’;
    if ( $args[‘show_last_update’] ) {
    $format = ‘Y-m-d’;
    $output .= ‘  ‘ . gmdate($format, $category->last_update_timestamp);
    }
    $output .= “</option>\n”;
    }
    }
    $mobilereparatie_walker_cat_d = new my_Walker_CategoryDropdown ;
    ?>

    • This reply was modified 5 years, 1 month ago by vdwerff.
    • This reply was modified 5 years, 1 month ago by vdwerff.
    Thread Starter vdwerff

    (@vdwerff)

    Thank you so much Adnan!

    This works perfectly. Thank you for your time and have a wonderful day.

    Thread Starter vdwerff

    (@vdwerff)

    Hi Adnan,

    If i’m correct this is the piece of code which this occurs.

    }
    $mobilereparatie_walker= new mobilereparatie_walker();

    class my_Walker_CategoryDropdown extends Walker_CategoryDropdown {

    function start_el(&$output, $category, $depth, $args) {
    $pad = str_repeat(‘ ‘, $depth * 3);

    $cat_name = apply_filters(‘list_cats’, $category->name, $category);
    $output .= “\t<option class=\” ggg level-$depth\” value=\””.$category->slug.”\””;
    if ( $category->term_id == $args[‘selected’] )
    $output .= ‘ selected=”selected”‘;
    $output .= ‘>’;
    $output .= $pad.$cat_name;
    if ( $args[‘show_count’] )
    $output .= ‘  (‘. $category->count .’)’;
    if ( $args[‘show_last_update’] ) {
    $format = ‘Y-m-d’;
    $output .= ‘  ‘ . gmdate($format, $category->last_update_timestamp);
    }
    $output .= “</option>\n”;
    }
    }
    $mobilereparatie_walker_cat_d = new my_Walker_CategoryDropdown ;
    ?>

    Thread Starter vdwerff

    (@vdwerff)

    Hi Adnan,

    Thank you for your quick response. I’ve checked the nav-walker.php file.
    It looks like there are no lines with $args = Array anymore.
    All I see is $args = array().

    I’m I looking at the wrong direction or is there a different cause for the error?

    Thanks in advance.

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