Skip to content

Instantly share code, notes, and snippets.

@StoyPenny
Created February 11, 2020 21:15
Show Gist options
  • Save StoyPenny/7304f31dd21fb8d385cd767c5b2c7c9f to your computer and use it in GitHub Desktop.
Save StoyPenny/7304f31dd21fb8d385cd767c5b2c7c9f to your computer and use it in GitHub Desktop.
WordPress Page Template - Template

WordPress Page Templates

WordPress comes ready to easily handle custom templates for your page layouts. Templates are a great way to easily manage layouts at scale. Templates & Custom Post Types combined with ACF data are an extremely powerful and flexible way to create and manage custom content on your WordPress powered wesbite.

Page Templates | Official Wordpress Documentation

Page Template Code

Here is the basic code that you need to get started creating your own custom template. You will likely want to copy the page content from your theme's page.php or index.php file to use as a starting point.

<?php
/**
* Template Name: Full Width Page
*
* @package WordPress
* @subpackage my-site
* @since Stoked US 1.0
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment