Brisk
Brisk

Reputation: 97

Issue with Wordpress 6.5 and custom code template

Since Wordpress 6.5 was released it seems that the assignment of templates created by code with "Template Name:" is no longer available. Is there a way to resolve the issue?

I'll explain.

On the FTP, inside the child theme of Twenty Twenty-Two, I create a file called template-about.php The code inside the file is as follows

enter image description here

In the backoffice, in the Pages section (with Gutengerg), up to version 6.4.4 of Wordpress, the section with all the templates created by code was shown.

enter image description here

From version 6.5+, when I create a new page the templates section shows the following options, and if I click on "Select Template" only the two basic templates of the Twenty Twenty-Two theme are shown.

enter image description here

Additionally, all previously created pages that were assigned a template, in version 6.4.4, no longer show the template select.

enter image description here

Upvotes: 0

Views: 460

Answers (2)

sowmya Lakshmipathi
sowmya Lakshmipathi

Reputation: 1

I also faced the same issue, but I could fix the issue by disabling Gutenberg editor so we can see custom template lists as before!!

Also, after this change, I can use PHP files to create the child theme templates.

Lists of custom templates Disabling Editor

Upvotes: 0

tecnico57
tecnico57

Reputation: 37

For quick solution can change template with quick edit in list of pages;

Alternatively you should create a json file of your theme folder and manage your templates from there

source: here

Update: reading the documentation in detail I believe it is sufficient to bring your customized templates from your current theme to a more updated theme that supports the block editor of version 6.5 of WordPress, and resume normal operation, also showing the "template" item during the editing a page. For example with theme twenty-four it work fine.

best regards,

Upvotes: 0

Related Questions