registering a global template wordpress 6.0

  ?php 
    
    /*
    *   Template Name : Amaizing Inner Page 1 Template from me*
    * @package WordPress
    * @subpackage CADENTIC® BUSINESS THEME
    * @since MY BUSINESS THEME 0.0.1
        */
    
    ?

if we would these simple lines in a template file we would use it as a global template but now in WordPress 6.0, there is no such attribute that exists in Gutenberg to select a new page template. I was following a few articles for this wordpress doc clouddera

Topic theme-development themes Wordpress

Category Web


but now in WordPress 6.0, there is no such attribute that exists in Gutenberg to select a new page template.

This is not true! WP 6.0 did not remove this functionality. In fact in the block editor it is even more prominent and has its own dedicated panel if you scroll up the sidebar:

enter image description here

If this isn't showing then you should enable it in the block editor settings window:

enter image description here

Keep in mind that the article you've linked to is talking about the classic editor.

The final possibility, is that poor/strange formatting has broken the ability to parse your template header.

E.g. instead of this:

  <?php 
    
    /*
    *   Template Name : Amaizing Inner Page 1 Template from me*

Do this:

<?php
/**
 * Template Name: Amazing Inner Page 1 Template from me*

See the official documentation for page templates for details and examples:

https://developer.wordpress.org/themes/template-files-section/page-template-files/#creating-custom-page-templates-for-global-use

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.