• Resolved MuViMoTV

    (@muvimotv)


    Hey!

    I’ve been getting errors with the category option when it’s not been initialized…

    I went to the settings page and well no categories were listed there for me to pick from…

    It happens that all our posts are private and thus the categories count are always zero…

    Anyway that put aside, people might create categories for future use and still want to have notification sent once the the will create their first post in these categories…

    It would be nice that in the setting all categories are listed.

    I change your code like this:

    private function valid_category_array($defaults = false) {
    	$arr = array();
    	$categories = get_categories( array('public'=> true, 'hide_empty' => 0, 'show_count' => 0), "objects");

    This way all the categories are always listed…

    Cheers

    https://wordpress.org/plugins/safari-push/

Viewing 1 replies (of 1 total)
  • Plugin Author macgamer

    (@macgamer)

    Thanks for that, I did not realise it hid empty categories by default.

    Will be in the next release.

Viewing 1 replies (of 1 total)
  • The topic ‘Empty category list’ is closed to new replies.