Skip to content

Instantly share code, notes, and snippets.

@damiencarbery
Last active January 6, 2020 22:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save damiencarbery/80224e36c28a1fd3a033f91b9a866300 to your computer and use it in GitHub Desktop.
Save damiencarbery/80224e36c28a1fd3a033f91b9a866300 to your computer and use it in GitHub Desktop.
Understanding the WordPress template hierarchy - Use the template hierarchy to change the presentation of a specific page or a bunch of them or all of them. It's your choice! https://www.damiencarbery.com/2019/10/understanding-the-wordpress-template-hierarchy/
<?php
wp_head();
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
the_title();
the_content();
}
}
wp_footer();
/*
Theme Name: Minimal Experiment
Theme URI: https://www.damiencarbery.com/2019/10/understanding-the-wordpress-template-hierarchy/
Author: Damien Carbery
Author URI: https://www.damiencarbery.com
Description: Basic theme with minimal files.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment