Ah, I guess even if I did get it to work, it wouldn’t matter? It would just reset this loop and show the same posts on each page. Is it possible to make this work in conjunction with separate pages?
Hey Emila, for categories you have to specify by ID, or if you want it by name you have to use “category_name”. For example:
'category_name' => 'name_of_your_category',
'cat' => '1',
'category__and' => array(1,2,3),
MichaelH, I appreciate all this code that you have shared. However, I have a question as well. I want to limit the number of posts displayed (I am using this for a gallery), but whenever I try and build a next or prev button they don’t work. I am using default code just to test:
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
Thanks.