• Resolved Vad

    (@vadym1)


    Hi!

    Problem №1:
    When I exclude the default category.
    Error in my blog page:

    Warning: count(): Parameter must be an array or an object that implements Countable in mysite.com\wp-includes\post-template.php on line 284
    
    Warning: count(): Parameter must be an array or an object that implements Countable in mysite.com\wp-includes\post-template.php on line 284

    Problem №2:
    I want to exclude categories also from the widget. But I can not.

    Problem №3: (Solved. I removed the check mark “Exclude from All Archives”)
    My post is added in two categories. If I hide one category. But I want to see this post in the second category.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marios Alexandrou

    (@marios-alexandrou)

    1. Warnings aren’t ideal, but they shouldn’t affect how the plugin works. Regardless, I’ll look into them.

    2. This happens sometimes. It’s difficult to ensure the plugin is compatible with all configurations. There are no tricks or hidden settings so it’s probably best to just try another plugin. I hope you find one that works perfectly for you!

    Thread Starter Vad

    (@vadym1)

    Thanks!

    2. Theme Twenty Fifteen

    I use it functions.php

    function exclude_widget_categories($args){
    	$exclude = "5,8";
    	$args["exclude"] = $exclude;
    	return $args;
    }
    add_filter("widget_categories_args","exclude_widget_categories");
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error – default category. Exclude in widget’ is closed to new replies.