Hello,
here's my site:
http://luisosio.com
Just curious to know how to limit the number of blog posts on the home page (very bottom).
I'm guessing it's somewhere in "homepagebottom"?
Here's my code:
Code:
<div id="homepagebottom">
<?php $featured_cat_1 = get_option('agent_featured_cat_1'); $featured_cat_1_num = get_option('agent_featured_cat_1_num'); if(!$featured_cat_1) $featured_cat_1 = 1; //setting a default ?>
<?php $recent = new WP_Query("cat=".$featured_cat_1."&showposts=".$featured_cat_1_num); while($recent->have_posts()) : $recent->the_post();?>
<div class="section">
<h3><a href="<?php the_permalink() ?>" rel="bookmark">
<?php the_title(); ?>
</a></h3>
<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>
<?php the_content_limit(400, "[Read more]"); ?>
<div style="clear:both;"></div>
</div>
<?php endwhile; ?>
</div>
Thanks