diff options
Diffstat (limited to 'includes/section-content.php')
| -rwxr-xr-x | includes/section-content.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/section-content.php b/includes/section-content.php new file mode 100755 index 0000000..5d0262d --- /dev/null +++ b/includes/section-content.php @@ -0,0 +1,10 @@ +<?php if(have_posts()): while(have_posts()): the_post(); ?> + <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> + <h2 class="entry-title"><?php the_title(); ?></h2> + <div class="entry-content"> + <?php the_content(); ?> + </div> + </article> +<?php endwhile; else: ?> + <p><?php esc_html_e('Sorry, no posts matched your criteria.'); ?></p> +<?php endif; ?>
\ No newline at end of file |
