I have a theme with a built in gallery but I want the gallery to show only the “featured” category. Here’s the code:
$my_query = new WP_Query(‘showposts=8&offset=0’:wink:;
while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
When I try this, it works somewhat but the pictures stop showing up.
$slidecat = get_option(‘featured’:wink:;
$my_query = new WP_Query(‘category_name= featured ‘. $slidecat .’&showposts=8&offset=0’:wink:;
Any suggestions or links to some similar php to replace in the theme?