Hi @tomcoady – I suspect this is happening because Twenty Twenty-Four is one of the new block themes – and the templating system doesn’t work in the same way.
They don’t use PHP templates – but instead new templates can be built visually with blocks in the Site Editor (under Appearance > Editor). You can find out more about block themes and how they work here.
Block themes
https://developer.wordpress.org/themes/getting-started/what-is-a-theme/
PHP templates will work with block themes. However, they cannot be chosen on the page editing screen. The only way to assign them to the page is to do so through the page management screen by clicking the Quick Edit button: https://imgur.com/iXKY0L0
I don’t recommend using that method, however. Instead, I suggest building a custom block template: https://developer.wordpress.org/themes/templates/templates/#custom-templates
Thank you for the clarification regarding the use of PHP templates with block themes. I appreciate the links and the recommendation to opt for building a custom block template instead.
I will explore the guide on creating a custom block template to better understand how to implement this effectively.
@jordesign thank you too for the excellent explanation – I thought it was the opposite for some reason! I’ll try creating a custom block template instead!
I have convert the classic template to block style but when adding it as a custom template I get this error message:
Error notice
The “submit-text” plugin has encountered an error and cannot be rendered.
Error notice
The “daextulma-load-document” plugin has encountered an error and cannot be rendered.
See link page above for updated code.
Directory structure:
templates]$ ls
404.html page-no-title.html single-with-sidebar.html
archive.html page-wide.html single.html
bookshelf-page.php page-with-sidebar.html template-parts
home.html page.html
index.html search.html
templates]$ ls template-parts/
bookshelf-page.php index.hml style.css
Solution found / problem solved from buggy plugin:
wp plugin deactivate ultimate-markdown
Referenced also at https://wphive.com/plugins/ultimate-markdown/