New answers tagged

0

Remove editor for pages chosen in custom settings, working with ACF plugin Firstly /* * Add additional settings menu related with ACF plugin */ if ( function_exists( 'acf_add_options_page' ) ) { acf_add_options_page( array( 'page_title' => 'Add. settings of Theme', 'menu_title' => 'Add. settings', 'menu_slug' => '...


1

Without editing anything hardcoded in the php files there is just one simple SQL query to do it all, can be executed in phpMyAdmin: UPDATE wp_postmeta SET meta_value = 'default' WHERE meta_key = '_wp_page_template'; Hope it may help some people!


2

The file needs a template header and will only behave as a user-selectable custom page template. True special templates like page-$slug.php that match the post's slug will only work when they live in the root theme directory.


Top 50 recent answers are included