WordPress.org

Forums

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

  1. renathy
    Member
    Posted 2 years 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 2 years 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

  • jQuery Categories List Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.