Why does my content disapear when I make a page to match an archive name?

The WordPress template hierarchy is your friend. https://developer.wordpress.org/themes/basics/template-hierarchy/ This provides a very detailed flow for how WP determines which template to load. If you are ever uncertain about which template is loading, this little function is handy. Paste in your theme’s functions.php and it will display the template used at the bottom of the page. … Read more

Get page id or status by private pages?

Double check you’re using these functions correctly. Try collecting the results and output them in order to see what you’re working with. get_the_ID() and get_queried_object_id() are two good ways to get the current ID, so pass them to get_post_status(). $debug = array ( ‘get_the_ID’ => get_the_ID(), ‘get_the_ID_status’ => get_post_status( get_the_ID() ), ‘get_queried_object_id’ => get_queried_object_id(), ‘get_queried_object_id_status’ … Read more