I’ve been trying to get support from iThemes, but they’ve yet to respond. I’m on deadline, so I hope somebody here can help.
The code below feeds into a specific area on my client’s website. CURRENTLY, it feeds ALL of the blog posts.
I want it to feed only CATEGORY 12.
What part of this code do I need to edit to make this happen?
<div id="pop" class="hiddencontent"> <?php $my_query = "showposts=4"; $my_query = new WP_Query($my_query); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <h5><a href="<?php the_permalink(); ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h5> <p><?php the_time('F j, Y') ?><br /> by: <?php the_author_link(); ?> • <?php the_category(', ') ?></p> <?php endwhile; ?>
Thanks in advance!
- The topic ‘Need SINGLE CATEGORY feed… currently have FULL blog feed… help?’ is closed to new replies.