Skip to content

Instantly share code, notes, and snippets.

@pochi-web pochi-web/index.php
Last active Nov 10, 2017

Embed
What would you like to do?
index.php
<?php get_header();?>
<body>
<header>
<div id="header_layer">
<h1>
<?php bloginfo('name' ); ?>
</h1>
<p><?php bloginfo('description');?></p>
<nav id="header_nav">
</nav>
</div><!--END-header_layer-->
</header>
<main id="category_main" <?php post_class();?>>
<?php if(have_posts()):?>
<?php while(have_posts()):the_post();?>
<section class="articles_index">
<h2><a href="<?php the_permalink(); ?>"><?php echo the_title();?></a></h2>
<time class="date"><?php the_time('Y年n月j日'); ?></time>
<div class="articles_index_thumbnail">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail(); ?>
</a>
</div>
<nav id="tag_navigation">
<?php if (the_category()) the_category('<ul id="tag_list"><li class="tag_name">','</li><li class="tag_name">','</li></ul>'); ?>
</nav>
</section>
<?php endwhile;?>
<div style="width:100%; text-align:center;">;
<?php posts_nav_link( ' &#183; ', 'previous page', 'next page' ); ?>
</div>
<?php endif;?>
</main>
<?php get_sidebar(); ?>
<?php get_footer();?>
</body>
</html>
@pochi-web

This comment has been minimized.

Copy link
Owner Author

pochi-web commented Nov 3, 2017

残りの処理
・抜粋にするときの処理
・ページング

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.