Search page doesn’t recognise post_type=page

I found a solution in this answer here: https://stackoverflow.com/questions/63678063/wordpress-search-filtering-pages-and-posts I customised the function as follows: function page_search_filter( \WP_Query $query ) { if ( ! is_admin() ) { if ( $query->is_main_query() && $query->is_search() ) { if ( isset( $_GET[‘post_type’] ) && $_GET[‘post_type’] == ‘page’ ) { $query->set( ‘post_type’,’page’ ); } } } return $query; } add_action( … Read more

Live page errors should be hidden

In your wp-config.php look for the line reading: define( ‘WP_DEBUG’, false ); (This is set to false by default, if you’re troubleshooting it may be set to true on your install) After it, add: if( WP_DEBUG == true ) { /** Don’t display WP errors */ define( ‘WP_DEBUG_DISPLAY’, false ); /** Log errors to debug.log … Read more

Website content shifted all the way to the left

The Answer by @rudtek went in the right direction. But i see no reason you would need the Padding anyway? It seems like removing @media (min-width: 922px) { .ast-container { max-width: 1240px; } fixes the majority of your problem. After that you need to remove @media (min-width: 922px) { .ast-container { max-width: 1240px; } } … Read more

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