Category Excluder Plugin

HOW TO EXCLUDE CATEGORY IN POST DISPLAY IN WORDPRESS

Advanced Category Excluder WP PLUGIN

How to EXCLUDE CATEGORIES WHILE DISPLAY in WordPress? – PLUGIN

If you need to exclude any particular category from the WordPress blog page and sidebar, you can use some of the best category excluder plugins which can help you without knowing a single line of code.

And if you do not wish to install a third party plugin then all you need to do is follow this easy php code step by step , and by modifying a file you will have the WordPress categories you want excluded. This tutorial also includes the sample code and was written for beginners without any coding experience.


  • Ultimate Category Excluder plugin
  • 9 Best Category Plugins reviewed by elegantthemes.com

  • PHP code to Exclude categories from Display on Blog

    Find the Category ID from wordpress dashboard. If you cant find the category ID, check tutorial here.

    Include this php code in functions.php or custom-function.php as used in your website theme.
    Remember to change category no as shown in php example with your own category number


    function exclude_category( $query ) {
    if ( $query->is_home() && $query->is_main_query() ) {
    $query->set( 'cat', '-6' );
    }
    }
    add_action( 'pre_get_posts', 'exclude_category' );
    
    

    To exclude multiple categories

    $query->set( 'cat', '-6,-7' );
    
    

    This shall Exclude category ID 6 and 7 from display on blog.





    FREE WORDPRESS PLUGINS LIST

    Some of the selected WordPress plugins for enhancing your convenience and blog management experience, are listed below. These plugins are mostly experimented with by our Editors team and are recommended as essential webmasters plugins for a wonderful WordPress journey.



    [display-posts orderby="rand" category="free-wp-plugins" posts_per_page="50"]


    For WordPress Plugins details please contact the Plugin Developers from the plugin homepage contact link. Generally plugin documentation is given with detailed configuration settings. Easiest way to install a WordPress plugin is to search for new plugin from the Dashboard > Plugins > Add new > menu. Install and Activate the plugin from there. The other way to install plugins is to download the plugin zip file to your PC, extract the folders and upload them via some FTP software to the wp-content > plugins directory. Once uploaded you will be able to see this plugin under inactive plugins list on Dashboard and can activate from there. If you find any other WP plugin useful for web developers, which may be listed here, please feel free to Contact us.




    BEST FREEWARE RESOURCES FOR WEBMASTERS

    Freeware REVIEWS
    TRUSTMEHER WEB SERVICES AND 
HOSTING TRUSTMEHER