Exemple #1
0
			</div>
		<?php
			if ( have_posts() ) :
				while ( have_posts() ) : the_post();

					?>
					<article id="post-<?php the_ID(); ?>" <?php //post_class(); ?> class="article-single" >
						<div class="article-single-box">
							<header class="entry-header">
								<?php the_title( '<h1 class="entry-title" itemprop="name headline">', '</h1>' ); ?>
								<div class="auther-gravater-single">
									<?php echo get_avatar( get_the_author_email(), '48'); ?>
								</div>
								<div class="post-meta-top">
									<span class="post-auther"><?php the_author_posts_link(); ?></span>
									<span class="updated postime" title="写于写于<?php the_time('Y年m月d日') ?> <?php the_time() ?>"><?php post_time_ago(); ?></span>
									<span class="post"><?php post_views(' ','次点击'); ?> </span>
								</div>

							</header>
							<div class="post-entry post-content">
								<p class="conetent-string">
								<?php the_content(  '阅读全文 <span class="meta-nav">&rarr;</span>');
									wp_link_pages( array(
										'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
										'after'       => '</div>',
										'link_before' => '<span>',
										'link_after'  => '</span>',
									) ); ?>
									
								<?php   comments_open() ?>
Exemple #2
0
        echo get_avatar(get_the_author_email(), '48');
        ?>
								</div>
								<div class="post-meta-top">
									<span class="post-auther"><?php 
        the_author_posts_link();
        ?>
</span>
									<span class="updated postime" title="写于写于<?php 
        the_time('Y年m月d日');
        ?>
 <?php 
        the_time();
        ?>
"><?php 
        post_time_ago();
        ?>
</span>
									<span class="post"><?php 
        post_views(' ', '次点击');
        ?>
 </span>
								</div>

							</header>
							<div class="post-entry post-content">
								<p class="conetent-string">
								<?php 
        the_content('阅读全文 <span class="meta-nav">&rarr;</span>');
        wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'twentyfourteen') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>'));
        ?>