Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #7166

    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

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Custom Page Templates’ is closed to new replies.