forked from megane9988/wp-d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
executable file
·34 lines (33 loc) · 946 Bytes
/
page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php get_header(); ?>
<div class="row main-content">
<div class="large-9 large-centered columns">
<?php while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2><?php the_title(); ?></h2>
</div>
<?php the_content(); ?>
<?php if (!is_page()){?>
<ul class="no-bullet post-meta">
<?php
$cats = get_the_category();
foreach( $cats as $cat) {
echo '<li><span class="secondary radius label">';
echo $cat->cat_name . '</span></li>';
}
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
echo '<li><span class="secondary radius label">';
echo $tag->name . '</span></li>';
}
}
?>
</ul>
<?php }?>
<?php edit_post_link('編集','(',')'); ?>
<?php wp_link_pages( ); ?>
<?php endwhile;?>
<?php comments_template(); ?>
</div>
</div>
<?php get_footer(); ?>