Created
February 24, 2017 13:30
-
-
Save ScarletPonytail/c1fc31a9a9f0ca1c58ab8872b2b164e7 to your computer and use it in GitHub Desktop.
Wordpress - Page.php / Standard Code
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(); ?> | |
<div class="container theme-showcase" role="main"> | |
<section id="content" role="main"> | |
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<header class="header"> | |
<h1 class="entry-title"><?php the_title(); ?></h1> <?php edit_post_link(); ?> | |
</header> | |
<section class="entry-content"> | |
<?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?> | |
<?php the_content(); ?> | |
<div class="entry-links"><?php wp_link_pages(); ?></div> | |
</section> | |
</article> | |
<?php if ( ! post_password_required() ) comments_template( '', true ); ?> | |
<?php endwhile; endif; ?> | |
</section> | |
</div> | |
<!-- /container --> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment