Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
if you need to exclude some categories from the WordPress category widget which finds it as a default WordPress widget you can do it in just one minute using this code snippet.
Steps to exclude categories from the WordPress category widget:
function zytheme_exclude_widget_categories($args){ $exclude = "1,4,8,57,80"; //Add your category ids here $args["exclude"] = $exclude; return $args; } add_filter("widget_categories_args","zytheme_exclude_widget_categories");
Did you find the WordPress snippets in this article helpful? Share it with your friends and if you have any questions and want to ask us about it, please don’t hesitate to add comments.