WordPress.org

Forums

Safari Push
[resolved] Empty category list (2 posts)

  1. MuViMoTV
    Member
    Posted 1 year ago #

    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/

  2. macgamer
    Member
    Plugin Author

    Posted 1 year ago #

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

    Will be in the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Safari Push
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.