If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Tagged: Custom Page Templates
I’d like to develop some custom page templates with database queries. The Avisio theme offers a straightforward way of doing this. Is there a similar method in this theme?
Yes – basically you just need to make a copy of page.php, at the very top add the “page template name” as comment and then modify following line:
get_template_part( 'includes/loop', 'page' );
so that it points to your template (i.e. includes/page_custom.php would look like:
get_template_part( 'includes/loop', 'page_custom' );
Then make a copy of includes/loop-page.php, rename it to loop-page_custom.php and add your custom queries
The topic ‘Custom Page Templates’ is closed to new replies.