summaryrefslogtreecommitdiffhomepage
path: root/includes
diff options
context:
space:
mode:
authorYour Name <[email protected]>2025-11-14 20:45:04 -0500
committerYour Name <[email protected]>2025-11-14 20:45:04 -0500
commite3aa629c7f8f8827dd540d5582e50b67dc53de07 (patch)
tree9f9555e0d3c8ea96335685c645bb478a163338be /includes
parent1743bc1b52f390e3942158fa7e911417bc869ee3 (diff)
downloadmalcz-wordpress-theme-e3aa629c7f8f8827dd540d5582e50b67dc53de07.tar.gz
malcz-wordpress-theme-e3aa629c7f8f8827dd540d5582e50b67dc53de07.zip
progress
Diffstat (limited to 'includes')
-rw-r--r--includes/section-content.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/section-content.php b/includes/section-content.php
new file mode 100644
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