Skip to content

Instantly share code, notes, and snippets.

@sjaved87
Last active August 20, 2016 08:53
Show Gist options
  • Save sjaved87/16038e959a1d97ce3f03cd3ddb95a8e2 to your computer and use it in GitHub Desktop.
Save sjaved87/16038e959a1d97ce3f03cd3ddb95a8e2 to your computer and use it in GitHub Desktop.
This is blank template page. It will also take care of header and footer scripts :)
<?php
/**
* Template Name: Blank Page
*
* A blank custom page template.
*
* Author - Sajid Javed
*
* The "Template Name:" bit above allows this to be selectable
* from a dropdown menu on the edit page screen.
*
*/
wp_head(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
<?php endif; ?>
<?php wp_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment