Skip to content

Instantly share code, notes, and snippets.

@phatsk
Created October 19, 2018 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phatsk/5b50c1b91314ee8a3cae37b50ae951aa to your computer and use it in GitHub Desktop.
Save phatsk/5b50c1b91314ee8a3cae37b50ae951aa to your computer and use it in GitHub Desktop.
<?php
/*
* Template Name: Downloads
*/
?>
Copy link

ghost commented Oct 19, 2018

For arguments sake, let's say this is the file

<?php /* Template Name: Downloads */ 

get_header(); 

	get_template_part( 'template-parts/partials/content', 'header' );

	get_template_part( 'template-parts/partials/content', 'page-start' );

		while ( have_posts() ) : the_post();

			get_template_part( 'template-parts/content', 'downloads' );

		endwhile;
		
	get_template_part( 'template-parts/partials/content', 'page-end' );
		
get_footer();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment