Support » Plugin: jQuery Categories List Widget » Feature – 'hide_empty' as widget option

  • Resolved renathy


    Why ‘hide_empty’ is not a widget option?

    It could be changed on line 99 in jquery-category-list.php:

    return get_categories(
    ‘type’ => ‘post’,
    ‘child_of’ => 0,
    ‘orderby’ => $options[‘orderby’],
    ‘order’ => $options[‘orderdir’],
    ‘hide_empty’ => 1, //HERE!!!!!!!!!!!!!!!!!
    ‘hierarchical’ => 1,
    ‘taxonomy’ => ‘category’,
    ‘pad_counts’ => false

    It would be helpful if this variable could be configured somewhere and not directly in code.

    Thank you,

Viewing 1 replies (of 1 total)
  • Plugin Author Miguel Useche


    I’ve updated the plugin to include this feature 🙂 test it please.

    For next time, you’re welcome to change the source code and send me patches, or keep giving ideas.

Viewing 1 replies (of 1 total)
  • The topic ‘Feature – 'hide_empty' as widget option’ is closed to new replies.