Thank you, your theme is great. I would like to show posts of certain cats and the most recent on the index page. I have tried various codes, the one I am working with is :
<?php $recent = new WP_Query(); $recent->query('cat= 13,237,1,190,455'); ?> <?php while($recent->have_posts()) : $recent->the_post(); ?><a href="<?php the_permalink(); ?>">
Not sure where to put this on loop.php. What happens is I keep getting the most recent posts from all cats.
- The topic ‘index.php – show posts of specific cats and only most recent’ is closed to new replies.