Skip to content

eli5wp

  • code snippets

posts

exclude uncategorized posts from blog

June 11, 2021June 11, 2021 by emily sparkle
function custom_category_widget($args) {
    $exclude = "1"; // Category IDs to be excluded
    $args["exclude"] = $exclude;
    return $args;
}
add_filter("widget_categories_args","custom_category_widget");
Categories code snippets, wordpress Tags exclude, posts

categories

  • code snippets (57)
    • admin (8)
    • child theme (1)
    • css (9)
    • elementor (1)
    • generatepress (10)
    • htaccess (4)
    • woocommerce (17)
    • wordpress (15)
  • links (4)

topics

admin email cache chrome only comments exclude font awesome google analytics google fonts hacky optimization posts reset responsive shortcode text wp-show-posts

recent

  • woocommerce button color control
  • // GeneratePress Search Box Clear
  • Google API Console
  • DKIM Authentication
  • dreamhost cache settings
© 2022 ASPIRE