Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder stevenmw's Avatar
    Join Date
    Jun 2007
    Location
    OK
    Posts
    497
    Thanks
    27
    Thanked 31 Times in 31 Posts

    WordPress 3.4.2 Exclude Category From Posts

    Want to exclude posts from a specific category in your WP news / blog feed?

    Add
    PHP Code:
    <?php query_posts('cat=-3'); ?>
    directly above the while loop in your index.php of your theme that outputs the feed.
    Thanks!

  • #2
    New to the CF scene
    Join Date
    Oct 2012
    Location
    USA
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for sharing . Fast and good solution .


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •