• 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • You might be better off using a custom post type for the two posts.

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

    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. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How Do I Hide a Post But Keep It Accessible By URL?’ is closed to new replies.