Tagged: x Author Posts May 5, 2016 at 9:28 pm #978049 trojans101Participant How can I hide a blog post from displaying in the blog? I’m looking to hide specific blogs to showing up in my blog. Any ideas? Thanks so much 🙂 May 5, 2016 at 10:45 pm #978116 Prasant RaiModerator Hello There, Thanks for writing in! You can use WP Hide Post plugin to hide specific blog posts showing up in blog page: https://wordpress.org/plugins/wp-hide-post/ Thanks. May 23, 2016 at 12:29 pm #1005611 trojans101Participant Hi there, This plugin doesn’t seem to hide posts from the blog. Any other plugin? May 23, 2016 at 12:41 pm #1005657 ThaiModerator Hi There, Please add the following code under functions.php file locates in your child theme: function x_exclude_single_posts_home($query) { if ($query->is_home() && $query->is_main_query()) { $query->set('post__not_in', array(123,456,789)); } } add_action('pre_get_posts', 'x_exclude_single_posts_home'); Replace 123, 456, 789 with your post IDs. Hope it helps 🙂 Author Posts <script> jQuery(function($){ $("#no-reply-978049 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script> Log In Username: Password: Keep me signed in Log In