السلام عليكم
لو سمجتو ممكن حدا يساعدني في تعديل قالب الأرشيف ؟
أريد أن أجعل قالب الأرشيف ( أرشيف التصنيفات ) يظهر المواضيع على الشكل التالي
1- مثلاً 5 أسطر من الموضوع ثم ، اقرأ المزيد
2- أن يكون في الصفحة 20 موضوع مأرشف ، و الباقي ( التالي - السابق )
هذا قالب الأرشيف للثيم الذي استخدمه
كود PHP:
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="pagetitle">أرشيف الفئة ‘<?php echo single_cat_title(); ?>’ </h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="pagetitle">أرشيف اليوم <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="pagetitle">أرشيف الشهر <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle">أرشيف السنة <?php the_time('Y'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pagetitle">أرشيف الكاتب</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle">أرشيف المدونة</h2>
<?php } ?>
<?php while (have_posts()) : the_post(); ?>
<div class="single" id="post-<?php the_ID(); ?>">
<div class="title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="data"><span class="author">كتبهُ <?php the_author(); ?></span> <span class="clock"> في <?php the_time('j - F - Y'); ?></span></div>
</div>
<div class="cover">
<div class="sentry">
<?php the_content('واصل القراءة »'); ?>
<div class="clear"></div>
</div>
</div>
<div class="spostinfo">
<div class="category"><?php the_category(', '); ?> </div>
</div>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« المواضيع السابقة') ?></div>
<div class="alignright"><?php previous_posts_link('المواضيع الجديدة »') ?></div>
</div>
<?php else : ?>
<h1 class="title">غير موجود</h1>
<p>أسف, لكنك تبحث عن شيء غير موجود هنا.</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>