Help with recent post and limit code
-
Hello I have two newbie questions.
I would like to post the most recent post in a catergory as a feature but post the last 2 as a sub feature on my first page I know I need to change something in the following code but what.
<?php $recent = new WP_Query(“cat=3&showposts=2”); while($recent->have_posts()) : $recent->the_post();?>
<b>” rel=”bookmark”><?php the_title(); ?></b><?php the_content_limit(130, “”); ?><div class=”hppostmeta”><p><?php the_time(‘F j, Y’); ?> | ” rel=”bookmark”>Read the story »</p>
</div>
<?php endwhile; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Help with recent post and limit code’ is closed to new replies.