Exclude Post from Displaying in Homepage

Community Forums Forums General Discussion Exclude Post from Displaying in Homepage

This topic is: resolved

This topic contains 4 replies, has 2 voices, and was last updated by  eze1981 12 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #38146

    eze1981
    Participant
    Post count: 32

    Hi,

    I have a category that I would like to NOT SHOW in the homepage/blog.

    This category is called “Awesome Stuff” and currently I  have 1 posting on it.

    What can I do so that posting will not show up in the homepage/blog, but only under Awesome Stuff Category?

    Here is my site: http://www.startupslove.com/

    Please let me know :)

    Thank You

    • This topic was modified 12 months ago by  eze1981.
    • This topic was modified 12 months ago by  eze1981.
    http://www.startupslove.com/
    #38155

    braddalton
    Participant
    Post count: 7473

    Here’s some code and a link to a post about different ways to exclude categories and posts in a category from your home and blog page.

    Code not displaying? Grab it on Github.


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #38195

    eze1981
    Participant
    Post count: 32

    I realized I dont need to exclude this particular category from the entire homepage, but only from the Content Part/Frame of the homepage. In other words, I still want to display the title of this category in the sidebar (as a featured article to read).

    Hope that what I am trying to achieve makes sense to you.

    Also, this code editing should be done in the index.php, correct?

    Please let me know.

    Thanks!

    #38206

    braddalton
    Participant
    Post count: 7473

    No. All custom PHP is done in the child themes functions.php file.

    You’ll find the solution in the article however you will need to use your own post/page i.d’s


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #38209

    eze1981
    Participant
    Post count: 32

    Awesome!

    Thanks so much for your help :)

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Exclude Post from Displaying in Homepage’ is closed to new replies.