Skip to content

Instantly share code, notes, and snippets.

@bepatrickdavid
Last active September 29, 2015 09:44
Show Gist options
  • Save bepatrickdavid/34dbdb7b51798cf37c49 to your computer and use it in GitHub Desktop.
Save bepatrickdavid/34dbdb7b51798cf37c49 to your computer and use it in GitHub Desktop.
WP: Template Tips codici tema intestazioni utili
/**
* Implement file.php
*/
require get_template_directory() . '/inc/file.php';
<html <?php language_attributes(); ?>>
<head>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
if ( is_front_page() && is_home() ) : ?>
<?php endif ?>
<?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(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
</article>
<?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