Last active
January 6, 2020 22:26
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
wp_head(); | |
if ( have_posts() ) { | |
while ( have_posts() ) { | |
the_post(); | |
the_title(); | |
the_content(); | |
} | |
} | |
wp_footer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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