Tag Info

New answers tagged


You could add this to your themes functions.php file. This adds private posts to the initial loop on the homepage only. /** * Include private posts in homepage loop */ function show_private_posts_on_homepage($query) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'post_status', array( 'publish', 'private' ...


I had a similar problem and here is the best solution I could come up with. The reason (I think) that private or non-published items show up in menus is that the menu items are themselves posts and have their own post_status. That means that in a situation where a page is marked private, the menu item for that page can still be set to publish, and is ...

Top 50 recent answers are included