WordPress.org

Ready to get started?Download WordPress

Forums

How Do I Hide a Post But Keep It Accessible By URL? (4 posts)

  1. TheDrewMiller
    Member
    Posted 3 years ago #

    Hello,

    I would like to add a category to my blog that contains two posts within it.

    I dont want the category or the posts to be viewable on my home page. I would like them to only be accessible through their direct URL.

    Right now my blog is using a widget that displays the newest posts on the home page. How can I exclude this post from that plugin? As well as stop the category showing up on the category bar on my home page?

    Thanks in advance for the help1
    -Drew

  2. vtxyzzy
    Member
    Posted 3 years ago #

    You might be better off using a custom post type for the two posts.

  3. Kapil Chugh
    Member
    Posted 3 years ago #

    I think if you save don't publish your posts in that category and just save those posts as drafts can solve your problem.

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    You can stop the category showing up in your category list by using the exclude parameter of wp_list_categories().

    The posts can be excluded from the home page by using a custom query that excludes either the posts by id or any post in that category.

    If you're using the default Recent Posts widget, there's no way that you can exclude posts from it. :-(

Topic Closed

This topic has been closed to new replies.

About this Topic