How to hide blog post from appearing in home page | WP experts need advice

RichKIDLK

BANNED
Jr. VIP
Joined
Aug 30, 2020
Messages
1,200
Reaction score
1,156
Hi,

You know in html we can create a html page and we can just hide it by not adding it to the home page(because that page is still exist, and accessible but not showing in home page)

My question is how to hide blog post in WordPress. I need to keep the post(it's OK if this post indexed) but I need to hide this specific post appearing in home page. How to do that? Any plugins or any guide to do this?

WP experts kindly help

Thank you.
 
You have many ways to do that

1) set this post as "private", so the post is only available to yourself
2) set the time of this post to a very ancient date, like 2000, you name it, then it will automatically get to the last page of your site
 
It's simple.

Download "wordpress post type" plugin

It let's you convert a post into a page, after you have converted it to a page then it will not show on any post pages but will still be indexable and in sitemap.
 
Go to Appearance -> Theme Editor -> Theme Functions (functions.php) and at the end put the below code to hide a category from Home/Front Page

Code:
function exclude_category_home( $query ) {
if ( $query->is_home ) {
$query->set( 'cat', '-12' );
}
return $query;
}
add_filter( 'pre_get_posts', 'exclude_category_home' );

Remember to change the category id and "-" is important before the id.
 
Static homepage can make you develop one custom page.
If you still dont have a clue then move site to subpages.
like.
website.com to yourpage.com/website.com
 
Settings and set static home page and blog pages.
Just create pages not posts or use plugin like wp hide post
Set it to "Private", simple AF!

No one can see that post except the person with the link!

Cheers!
You have many ways to do that

1) set this post as "private", so the post is only available to yourself
2) set the time of this post to a very ancient date, like 2000, you name it, then it will automatically get to the last page of your site
It's simple.

Download "wordpress post type" plugin

It let's you convert a post into a page, after you have converted it to a page then it will not show on any post pages but will still be indexable and in sitemap.
Go to Appearance -> Theme Editor -> Theme Functions (functions.php) and at the end put the below code to hide a category from Home/Front Page

Code:
function exclude_category_home( $query ) {
if ( $query->is_home ) {
$query->set( 'cat', '-12' );
}
return $query;
}
add_filter( 'pre_get_posts', 'exclude_category_home' );

Remember to change the category id and "-" is important before the id.
I use the https://wordpress.org/plugins/whp-hide-posts plugin to do that.
Static homepage can make you develop one custom page.
If you still dont have a clue then move site to subpages.
like.
website.com to yourpage.com/website.com

Thank you so much friends! :)
 
Back
Top