Using custom page templates in Twenty Nineteen
-
I’ve cloned my production site. Updated the clone to WP5.0.1 and am trying to achieve what I need to do with Twenty Nineteen.
I use custom page templates to run PHP and MYSQL requests to custom database files.
The template selector has disappeared from the page attributes dropdown but this poses no problem if the page template file name corresponds to the created page name.To create a page template I copy and rename the theme’s page.php to template_”page name”.php.
I insert the template name at the top of the template file and insert my custom PHP code.
But where? There seems to be no obvious place to insert content.
Could the solution lie in the template-parts sub-directory?
- The topic ‘Using custom page templates in Twenty Nineteen’ is closed to new replies.