Using Page Templates with GravityView

Requires WordPress 4.7+

Do you have a page template you want to use with GravityView as well? A full-width page layout, for example?

WordPress 4.7 now allows you to use your theme's page templates for GravityView as well! Learn more about Post Type Templates in WordPress 4.7.

Adding support just requires one small modification to your theme's template file:

Before:

<?php
/*
Template Name: Full-Width Layout
*/

After (notice the new Template Post Type line):

<?php
/*
Template Name: Full-Width Layout
Template Post Type: page, gravityview
*/

This will add a "Post Attributes" box to your Edit View screen that will allow you to select the layout:

Post Attributes metabox


Alternate method: the Custom Post Type Page Template plugin

Don't feel comfortable modifying your template files? Aren't running WordPress 4.7? Here's another way to achieve the same result:

  1. Install the Custom Post Type Page Template plugin
  2. Go to Settings > Custom Post Type Page Template
  3. Check gravityview then Save Changes
    Check gravityview
  4. You should now see the box with available templates in Edit View