Created
December 31, 2015 06:51
-
-
Save YasuakiHirano/f093066686df793ce586 to your computer and use it in GitHub Desktop.
wp simple page 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
<?php get_header();?> <!--ヘッダー取得--> | |
<?php get_template_part('header','page'); ?> <!--ページ用のヘッダー取得・不要な場合は削除--> | |
<div id="main"> | |
<div id="contents"> | |
<?php if(have_posts()): while(have_posts()): the_post(); ?> | |
<div class="entry"> | |
<h2 id="title"> | |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> | |
</h2> | |
<div class="entry_main"> | |
<?php the_content(); ?> | |
</div> | |
</div> | |
<?php endwhile; endif; ?> | |
</div> | |
</div> | |
<?php get_footer();?><!--フッター取得--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment