• Skip to primary navigation
  • Skip to main content

Jerad Hill

Blog of Life & Business Persuits

  • About
  • Topics
    • Blog
    • Business
    • Tutorials
    • Family
    • Family Adventures
    • Health & Fitness
    • Income Reports
    • Marriage
    • Newsletter
    • Parenting
    • Passive Income
    • Personal Development
    • Photography
    • Projects
    • Reviews
    • Technology
    • Tutorials
      • Notion
  • Podcast
  • Newsletter
  • My Sites
    • Learn With Jerad
    • State of Tech
    • Gear & Light
    • Hill Media Group
    • Jerad Hill Photographer

Exclude a Category from your WordPress Frontpage

April 15, 2009

On occasion you may write a blog entry that you do not want on your front page but do want under a category. Many themes now a days are including settings you can change to remove categories but if you end up having to hard code it in here is what you need to do.

You will have to create a category that you are going to place these entries into.

Open up the index.php file located inside the folder for your wordpress theme. You will need to replace the #3 in the code below with the id of the category you wish to not include on your front page. If you categorize your entry in more then one category then you will need to not include that category also in which you simply add a comma after the first category number and enter the next category number with no spaces.

wp-remove-category-frontpage

This will not remove the category from the menu. To remove the category from the menu check out my blog on Excluding a Category from your WordPress Menu.

Filed Under: Blog Tagged With: wordpress 1 Comment

Reader Interactions

Comments

  1. Abghhc says

    June 11, 2012 at 5:15 am

    this may help you:
    http://webgeek.elletis.com/how-to-exclude-certain-categories-from-home-page/ 

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Copyright © 2021 · Jerad Hill