Created
June 3, 2015 11:34
-
-
Save idavinder/5c08df65dc3aca6f7244 to your computer and use it in GitHub Desktop.
Exclude Categories from Category Widget in WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Exclude Categories from Category Widget - basicWP.com | |
function custom_category_widget($args) { | |
$exclude = "3,4"; // Category IDs to be excluded | |
$args["exclude"] = $exclude; | |
return $args; | |
} | |
add_filter("widget_categories_args","custom_category_widget"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @basicwp ,
Do you know how to show Featured Products from the current category only in the widget Product List?