Edit Page button is gone

Check under settings -> reading and select the page where you want to show your blog posts. Then this becomes your blog page. You can set it to the home page or choose a static page for your home page. See more info here: https://wordpress.org/documentation/article/settings-reading-screen/ You usually can’t change the layout/content of the blog page … Read more

Need pages with same names in multiple subdirectories

It sounds like you’ll need to create the page templates with filenames such as tpl-calculator-1.php, tpl-calculator-2.php, etc. You then make sure to put a comment at the top of each template to give it a user-friendly name that will appear in the Editor: <?php /** * Template Name: Events Thank You */ Files named this … Read more

How to remove slug from CPT correctly?

This is a two-step process. First, you need to remove the slug from the default URL. (use a unique slug while registering the CPT). function wpse413969_remove_cpt_slug( $post_link, $post ) { if ( $post->post_type == ‘YOUR_CPT’ && $post->post_status == ‘publish’) { $post_link = str_replace( “https://wordpress.stackexchange.com/” . $post->post_type . “https://wordpress.stackexchange.com/”, “https://wordpress.stackexchange.com/”, $post_link ); } return $post_link; } … Read more