أقوم بتطوير قالب PHP wordpress ووصلت لصفحة category.php و archive.php
وعند طلب الصفحة يظهر أول مقال فقط وليس كل مقالات الموقع بناء على (category / author / tag)
أريد أن يظهر تكرر المقالات بشكل بلوك begnation
رغم أني كتبت لوب في الكود :
<?php
// The Loop
if (have_posts()) :
while (have_posts()) :
the_post(); //post
?>
<main id="main">
<!-- ======= Title Section ======= -->
<section id="" class="">
<div class="">
<div class="content">
<h3>
<!-- طباعة واستدعاء الفئة (category) الحالية -->
<?php single_cat_title() ?>
</h3>
</div>
</div>
</section>
<!-- End Why Us Section -->
<!-- ======= Content Section ======= -->
<section id="" class="">
<div class="container">
<?php the_category(', ') ?>
<h3><?php the_title() ?></h3>
<p><?php /* دالة لاستدعاء تاريخ البوست */ echo get_the_date() ?> by: <strong><?php /* دالة لاستدعاء مؤلف البوست */ the_author_link() ?></strong></p>
<p>
<?php
// دالة لاستدعاء وصف البوست
the_excerpt() ?>
</p>
<p>
<a href="<?php /* دالة ترجع رابط البوست */ the_permalink() ?>">Continue reading</a>
</p>
</div>
</section>
<!-- End Skills Section -->
</main>
<!-- End #main -->
<?php
// End Loop
endwhile;
endif;
?>
أرجو المساعدة