Skip to content

Instantly share code, notes, and snippets.

@YasuakiHirano
Created December 31, 2015 06:51
Show Gist options
  • Save YasuakiHirano/f093066686df793ce586 to your computer and use it in GitHub Desktop.
Save YasuakiHirano/f093066686df793ce586 to your computer and use it in GitHub Desktop.
wp simple page php
<?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