I’m trying to display a list of recent posts from a specific category. I’ve been scouring all over the interweb looking for solutions, and everything I try only works half way.
No matter what I do, the resulting list displays 6 posts, regardless of what I set it to. Both of the following seem to work, yet they both return 6 posts. At first I thought I must be missing something, but after trying countless different options, and noticing that it’s always 6 posts, I’m thinking there’s something else at work. Any ideas?
< ?php query_posts('category_name=portfolio &posts_per_page=4'); ?>
< ?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>