示例#1
0
 *
 * @package Seasonal
 */
get_header();
?>

	<div id="primary" class="content-area">
		<main id="main" class="site-main" role="main"  itemscope="" itemtype="http://schema.org/Blog">

		<?php 
if (have_posts()) {
    ?>

			<header class="page-header">
				<?php 
    seasonal_the_archive_title('<h1 class="page-title">', '</h1>');
    seasonal_archive_description('<div class="taxonomy-description">', '</div>');
    ?>
			</header><!-- .page-header -->

			
			<?php 
    while (have_posts()) {
        the_post();
        ?>

				<?php 
        /* Include the Post-Format-specific template for the content.
         * If you want to override this in a child theme, then include a file
         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
         */
示例#2
0
            while (have_posts()) {
                the_post();
                get_template_part('template-parts/content', get_post_format());
            }
            seasonal_blog_pagination();
        } else {
            get_template_part('template-parts/content', 'none');
        }
        break;
        // Small featured image style
    // Small featured image style
    case "blog-small":
        echo '<div class="blog-small">';
        if (have_posts()) {
            echo '<header class="page-header">';
            seasonal_the_archive_title('<h1 class="page-title" itemprop="name">', '</h1>');
            seasonal_archive_description('<div class="taxonomy-description">', '</div>');
            echo '</header>';
            while (have_posts()) {
                the_post();
                get_template_part('template-parts/content', 'small');
            }
            seasonal_blog_pagination();
        } else {
            get_template_part('template-parts/content', 'none');
        }
        echo '</div>';
        break;
}
?>