custom loop post in a page
-
hi everyone. I’ve a question 4 u 4 a problem.
i have a custom page template with this loop:
<div id="main-left"><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1><?php the_content(); ?>
<?php endwhile; endif; ?>
<?php
$postslist = get_posts('numberposts=10&order=ASC&orderby=title&cat=96');
foreach ($postslist as $post) :
setup_postdata($post);
?>
<div class="column">
<h2>" rel="bookmark"><?php the_title(); ?></h2>
i need to show a thumbnail of my post on the left of my content/excerpt with the "read more" tag
<?php the_content(__('Read more')); ?>
</div>
I need to paginate my post in this page;
i have more than 10 post (30 and more) and need to have a pagination as "<<prev Page 1 of 2 | 3 | 4 | 5 ... next>>"<?php endforeach; ?>
</div>
<?php get_sidebar(); ?>
<div class="clear"></div>
<?php get_footer(); ?>in bold i’ve write what i need. someone so kindly could help me? ^_^
- The topic ‘custom loop post in a page’ is closed to new replies.