{"id":1058,"date":"2017-08-22T08:37:40","date_gmt":"2017-08-22T08:37:40","guid":{"rendered":"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/"},"modified":"2023-10-04T10:05:51","modified_gmt":"2023-10-04T10:05:51","slug":"hide-posts-on-homepage","status":"publish","type":"post","link":"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/","title":{"rendered":"How to Hide Posts on Homepage of the WordPress Website","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"

WordPress is versatile. By choosing different WordPress themes, installing plugins and manually fiddling with code and templates, you can develop any type of website that you want. The style of the homepage depends solely on the theme and your wishes. But even though it has been years after WordPress evolved into much more than a simple blogging platform<\/a>, it’s hard to grow outside the original idea.<\/p>\n\n\n\n

That is why most of the websites built with WordPress<\/a> still show new blog posts on the homepage. Most of the users will want their new articles featured on the front page, so there is a reason why most of the themes come designed in such a way.<\/p>\n\n\n\n

When you get comfortable enough with writing posts in WordPress and learning how the editor works, you will realize that it is easy to make specific posts sticky. But at the same time, it will look impossible to remove particular posts from the homepage. Is it possible to hide posts on the homepage?<\/p>\n\n\n\n

Why would someone hide posts from the homepage in the first place?<\/h2>\n\n\n\n

For most bloggers, hiding posts may seem ridiculous. Why would anyone spend time writing new articles and then decide to hide them from the homepage? Well, there are different reasons for hiding posts.<\/p>\n\n\n\n

For example, you may have several categories for organizing content. So, you might want to show just one category on your homepage and hide other ones from the public. If you write both reviews and short news, maybe you will want only reviews to be displayed to the new users while you can show the news somewhere else. A good example would be having a News category that you only want to display in a slider. So, hiding posts from the homepage would make sense – you would avoid having duplicate content on the homepage.<\/p>\n\n\n\n

Another example where users would like to hide posts is having guest posts<\/a>. Instead of featuring guests on the homepage, you might want to show guest posts just on a special page instead. There are hundreds of reasons why would someone hide posts from the homepage, and yours might completely unique.<\/p>\n\n\n\n

How to hide posts from the homepage<\/h2>\n\n\n\n

Unfortunately, WordPress does not feature this option. It would be nice if there were a checkbox that would let you hide the post from the homepage even before publishing it, but instead, you will have to consider different methods. Don’t worry, though; there are some popular and free plugins that will solve your problem in a jiffy.<\/p>\n\n\n\n

Make the post private<\/h3>\n\n\n\n

But before we get to those nifty extensions, here’s a more straightforward solution. If you just want to make a private post that will be available just to logged in users, there’s no need for installing additional plugins.<\/p>\n\n\n

\n
\"Make<\/figure><\/div>\n\n\n

<\/p>\n\n\n\n

When writing a new article, take a look at the right-hand side of the screen where you will find publishing options. From there, you can change the visibility to Private which will hide the post both from the homepage and direct access. Only administrators and editors will get to see such private posts. If you are still not well acquainted with post options, please see how to publish your first WordPress post<\/a> and learn about all the default options.<\/p>\n\n\n\n

Create pages instead<\/h3>\n\n\n\n

Although there is an unwritten rule that tells not to write articles as pages, there are always exceptions. Depending on the structure of your blog and the overall organization, you might hide specific posts just by publishing them as pages.<\/p>\n\n\n\n

Since most of the WordPress themes<\/a> grab only the latest posts for the homepage, writing an article as a page will let you go around that. Add a new page, write whatever you wanted and publish the content. But as you can see, your new article won’t be listed anywhere else on the site. That’s why you have to have an organized site for this to work and plan a solution that will let you display pages somewhere else.<\/p>\n\n\n\n

WP Hide Post<\/h3>\n\n\n\n

PRICE: <\/strong>Free<\/a><\/p>\n\n\n

\n
\"WP<\/figure><\/div>\n\n\n

<\/p>\n\n\n\n

This free WordPress plugin counts more than 50,000 active users and is regularly updated. WP Hide Post is very simple; it lets you control the visibility of a post in various places like the front, category, tag, authors, archive, search results, and feed pages.<\/p>\n\n\n\n

Since the plugin works both with posts and pages, you have a complete control. WP Hide Post does a great job hiding your posts and pages, but there’s much more power into it. Because of the main feature, you get to write posts that can help you with search engine optimization while at the same time keeping a clean structure of the site.<\/p>\n\n\n\n

In order to hide posts and pages from the homepage, follow these simple steps:<\/p>\n\n\n\n

    \n
  1. Go to Plugins -> Add New<\/em><\/li>\n\n\n\n
  2. Search for “WP Hide Post”<\/li>\n\n\n\n
  3. Install and activate the plugin<\/li>\n\n\n\n
  4. Create a new post or edit an existing one<\/li>\n\n\n\n
  5. On the right-hand side, find the “Post Visibility” box created by the plugin<\/li>\n\n\n\n
  6. Check the option to hide that specific post<\/li>\n<\/ol>\n\n\n\n

    As long as you don’t check boxes from the new Post Visibility box, the post will appear as usual.<\/p>\n\n\n\n

    Hide all posts from specific categories<\/h2>\n\n\n\n

    While the previously mentioned plugin will solve almost all of your post-hiding problems, it can’t hide entire categories. So, there’s a different approach you can use to hide posts from a specific category.<\/p>\n\n\n

    \n \n\n

    Instead of installing plugins, this time you will have to get your hands a bit dirty on the code. Before you start modifying template files, please see how to work with the Appearance Editor in WordPress<\/a>.<\/p>\n\n<\/div>\n\n\n

    If you know the risks of editing the code and you know what you are doing, feel free to proceed. Otherwise, if you’re not sure about Appearance Editor and PHP, we advise not to continue:<\/p>\n\n\n\n

      \n
    1. Go to Posts -> Categories<\/em><\/li>\n\n\n\n
    2. Click and open the category that you want to hide<\/li>\n\n\n\n
    3. Check out the URL that is shown in the browser<\/li>\n\n\n\n
    4. Somewhere in the middle, you should see something like this: “\/term.php?taxonomy=category&tag_ID=55&post_type=post”<\/li>\n\n\n\n
    5. Remember the ID number of the category (in this case, the number is 55)<\/li>\n\n\n\n
    6. Open functions.php file from the active theme<\/li>\n\n\n\n
    7. Copy and paste the code and replace “xx” with the category ID (leave the minus sign in the code)<\/li>\n<\/ol>\n\n\n
      \n \n\n

      function exclude_category($query) {
      if ( $query->is_home() ) {
      $query->set( ‘cat’, ‘-xx’ );
      }
      return $query;
      }
      add_filter( ‘pre_get_posts’, ‘exclude_category’ );<\/p>\n\n<\/div>\n\n\n

      Once you save changes, all posts that are part of that particular category will no longer appear on the homepage. Now, instead of using the plugin to manually hide each and every post or page, you just have to add the post to the selected category, and WordPress will work out the rest.<\/p>\n\n\n\n

      If you ever decide to bring back the category on the homepage, just go back to the functions.php file and delete the code.<\/p>\n\n\n\n

      Ultimate Category Excluder<\/h3>\n\n\n\n

      PRICE: <\/strong>Free<\/a><\/p>\n\n\n

      \n
      \"Ultimate<\/figure><\/div>\n\n\n

      <\/p>\n\n\n\n

      If you prefer excluding entire categories from the front page by using a plugin, Ultimate Category Excluder is the one you are looking for. Right after installing this free plugin, you will be able to select categories that you don’t want on front pages, archives, feeds, and searches.<\/p>\n\n\n\n

      The plugin is simple as it gets, and there are more than 30,000 active users to prove to you that it works well.<\/p>\n\n\n\n

      Conclusion<\/h2>\n\n\n\n

      Whatever the reason you have for hiding WordPress posts from the homepage, this article should have helped you to do so. Although there are several methods available, we suggest using the free WP Hide Post plugin that will solve your problem in a matter of seconds.<\/p>\n\n\n\n

      If you are familiar with WordPress templates and editing functions.php file, you can achieve pretty much the same results without using a plugin.<\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"

      WordPress is versatile. By choosing different WordPress themes, installing plugins and manually fiddling with code and templates, you can develop any type of website that you want. The style of the homepage depends solely on the theme and your wishes. But even though it has been years after WordPress evolved into much more than a […]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":1059,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[7],"tags":[],"acf":[],"yoast_head":"\nHow to Hide Any Blog Posts from the WordPress Homepage<\/title>\n<meta name=\"description\" content=\"Use a simple plugin to hide posts from the WordPress homepage or generate a code that will hide entire categories from it.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Hide Any Blog Posts from the WordPress Homepage\" \/>\n<meta property=\"og:description\" content=\"Use a simple plugin to hide posts from the WordPress homepage or generate a code that will hide entire categories from it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/\" \/>\n<meta property=\"og:site_name\" content=\"FirstSiteGuide\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/firstsiteguide\" \/>\n<meta property=\"article:published_time\" content=\"2017-08-22T08:37:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-04T10:05:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/firstsiteguide.com\/wp-content\/uploads\/2020\/11\/hide-posts-from-homepage.png\" \/>\n\t<meta property=\"og:image:width\" content=\"620\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Artem Minaev\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@firstsiteguide\" \/>\n<meta name=\"twitter:site\" content=\"@firstsiteguide\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Artem Minaev\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/\"},\"author\":{\"name\":\"Artem Minaev\",\"@id\":\"https:\/\/firstsiteguide.com\/#\/schema\/person\/f50d1a14c8700f98e503501648a92296\"},\"headline\":\"How to Hide Posts on Homepage of the WordPress Website\",\"datePublished\":\"2017-08-22T08:37:40+00:00\",\"dateModified\":\"2023-10-04T10:05:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/\"},\"wordCount\":1314,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\/\/firstsiteguide.com\/#organization\"},\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/\",\"url\":\"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/\",\"name\":\"How to Hide Any Blog Posts from the WordPress Homepage\",\"isPartOf\":{\"@id\":\"https:\/\/firstsiteguide.com\/#website\"},\"datePublished\":\"2017-08-22T08:37:40+00:00\",\"dateModified\":\"2023-10-04T10:05:51+00:00\",\"description\":\"Use a simple plugin to hide posts from the WordPress homepage or generate a code that will hide entire categories from it.\",\"breadcrumb\":{\"@id\":\"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/firstsiteguide.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Hide Posts on Homepage of the WordPress Website\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/firstsiteguide.com\/#website\",\"url\":\"https:\/\/firstsiteguide.com\/\",\"name\":\"FirstSiteGuide\",\"description\":\"Online Business Advice\",\"publisher\":{\"@id\":\"https:\/\/firstsiteguide.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/firstsiteguide.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/firstsiteguide.com\/#organization\",\"name\":\"FirstSiteGuide\",\"url\":\"https:\/\/firstsiteguide.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/firstsiteguide.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/firstsiteguide.com\/wp-content\/uploads\/2020\/11\/fsg-logo-green.svg\",\"contentUrl\":\"https:\/\/firstsiteguide.com\/wp-content\/uploads\/2020\/11\/fsg-logo-green.svg\",\"width\":73,\"height\":70,\"caption\":\"FirstSiteGuide\"},\"image\":{\"@id\":\"https:\/\/firstsiteguide.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/firstsiteguide\",\"https:\/\/twitter.com\/firstsiteguide\",\"https:\/\/www.instagram.com\/firstsiteguide\/\",\"https:\/\/www.linkedin.com\/company\/firstsiteguide\/\",\"https:\/\/www.pinterest.com\/firstsiteguide\/\",\"https:\/\/www.youtube.com\/firstsiteguide\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/firstsiteguide.com\/#\/schema\/person\/f50d1a14c8700f98e503501648a92296\",\"name\":\"Artem Minaev\",\"sameAs\":[\"http:\/\/vps66354.inmotionhosting.com\/~firsts43\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Hide Any Blog Posts from the WordPress Homepage","description":"Use a simple plugin to hide posts from the WordPress homepage or generate a code that will hide entire categories from it.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/","og_locale":"en_US","og_type":"article","og_title":"How to Hide Any Blog Posts from the WordPress Homepage","og_description":"Use a simple plugin to hide posts from the WordPress homepage or generate a code that will hide entire categories from it.","og_url":"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/","og_site_name":"FirstSiteGuide","article_publisher":"https:\/\/www.facebook.com\/firstsiteguide","article_published_time":"2017-08-22T08:37:40+00:00","article_modified_time":"2023-10-04T10:05:51+00:00","og_image":[{"width":620,"height":400,"url":"https:\/\/firstsiteguide.com\/wp-content\/uploads\/2020\/11\/hide-posts-from-homepage.png","type":"image\/png"}],"author":"Artem Minaev","twitter_card":"summary_large_image","twitter_creator":"@firstsiteguide","twitter_site":"@firstsiteguide","twitter_misc":{"Written by":"Artem Minaev","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/#article","isPartOf":{"@id":"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/"},"author":{"name":"Artem Minaev","@id":"https:\/\/firstsiteguide.com\/#\/schema\/person\/f50d1a14c8700f98e503501648a92296"},"headline":"How to Hide Posts on Homepage of the WordPress Website","datePublished":"2017-08-22T08:37:40+00:00","dateModified":"2023-10-04T10:05:51+00:00","mainEntityOfPage":{"@id":"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/"},"wordCount":1314,"commentCount":6,"publisher":{"@id":"https:\/\/firstsiteguide.com\/#organization"},"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/","url":"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/","name":"How to Hide Any Blog Posts from the WordPress Homepage","isPartOf":{"@id":"https:\/\/firstsiteguide.com\/#website"},"datePublished":"2017-08-22T08:37:40+00:00","dateModified":"2023-10-04T10:05:51+00:00","description":"Use a simple plugin to hide posts from the WordPress homepage or generate a code that will hide entire categories from it.","breadcrumb":{"@id":"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/firstsiteguide.com\/hide-posts-on-homepage\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/firstsiteguide.com\/"},{"@type":"ListItem","position":2,"name":"How to Hide Posts on Homepage of the WordPress Website"}]},{"@type":"WebSite","@id":"https:\/\/firstsiteguide.com\/#website","url":"https:\/\/firstsiteguide.com\/","name":"FirstSiteGuide","description":"Online Business Advice","publisher":{"@id":"https:\/\/firstsiteguide.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/firstsiteguide.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/firstsiteguide.com\/#organization","name":"FirstSiteGuide","url":"https:\/\/firstsiteguide.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/firstsiteguide.com\/#\/schema\/logo\/image\/","url":"https:\/\/firstsiteguide.com\/wp-content\/uploads\/2020\/11\/fsg-logo-green.svg","contentUrl":"https:\/\/firstsiteguide.com\/wp-content\/uploads\/2020\/11\/fsg-logo-green.svg","width":73,"height":70,"caption":"FirstSiteGuide"},"image":{"@id":"https:\/\/firstsiteguide.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/firstsiteguide","https:\/\/twitter.com\/firstsiteguide","https:\/\/www.instagram.com\/firstsiteguide\/","https:\/\/www.linkedin.com\/company\/firstsiteguide\/","https:\/\/www.pinterest.com\/firstsiteguide\/","https:\/\/www.youtube.com\/firstsiteguide"]},{"@type":"Person","@id":"https:\/\/firstsiteguide.com\/#\/schema\/person\/f50d1a14c8700f98e503501648a92296","name":"Artem Minaev","sameAs":["http:\/\/vps66354.inmotionhosting.com\/~firsts43"]}]}},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/firstsiteguide.com\/wp-json\/wp\/v2\/posts\/1058"}],"collection":[{"href":"https:\/\/firstsiteguide.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/firstsiteguide.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/firstsiteguide.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/firstsiteguide.com\/wp-json\/wp\/v2\/comments?post=1058"}],"version-history":[{"count":11,"href":"https:\/\/firstsiteguide.com\/wp-json\/wp\/v2\/posts\/1058\/revisions"}],"predecessor-version":[{"id":14717,"href":"https:\/\/firstsiteguide.com\/wp-json\/wp\/v2\/posts\/1058\/revisions\/14717"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/firstsiteguide.com\/wp-json\/wp\/v2\/media\/1059"}],"wp:attachment":[{"href":"https:\/\/firstsiteguide.com\/wp-json\/wp\/v2\/media?parent=1058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/firstsiteguide.com\/wp-json\/wp\/v2\/categories?post=1058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/firstsiteguide.com\/wp-json\/wp\/v2\/tags?post=1058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}