WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Categories List Widget
[resolved] Feature - 'hide_empty' as widget option (2 posts)

  1. renathy
    Member
    Posted 1 year ago #

    Why 'hide_empty' is not a widget option?

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

    return get_categories(
    array(
    '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,
    Renate

    http://wordpress.org/extend/plugins/jquery-categories-list/

  2. Miguel Useche
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.