Last active
September 29, 2015 09:44
-
-
Save bepatrickdavid/34dbdb7b51798cf37c49 to your computer and use it in GitHub Desktop.
WP: Template Tips codici tema intestazioni utili
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
/** | |
* Implement file.php | |
*/ | |
require get_template_directory() . '/inc/file.php'; |
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
<html <?php language_attributes(); ?>> | |
<head> | |
<?php wp_head(); ?> | |
</head> | |
<body <?php body_class(); ?>> | |
<?php | |
if ( is_front_page() && is_home() ) : ?> | |
<?php endif ?> |
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 get_header(); ?> | |
<?php // Start the loop. | |
while ( have_posts() ) : the_post(); | |
// Include the page content template. | |
get_template_part( 'content', 'page' ); | |
// End the loop. | |
endwhile; | |
?> | |
<?php get_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
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
</article> |
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 | |
/* | |
Template Name: 4. Portfolio | |
Author: Patrick David | |
*/ | |
get_header(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment