Hello All!
How on the Lifestyle Theme homepage how do I change the default bottom categories section (or any categories for that matter) where it says to "Read More Posts From this Category" from the cat=1 to whichever category of my choosing?
I know it's somewhere below (I think?) but not sure what to change.
I know if i go to 'edit categories' on Dashboard I can get cat_ID number but not sure where in the code to change to my liking.
Thanks for all of your help!
Code:
<div id="homepageleft"> <div class="hpfeatured"> <?php $feature_cat_1 = get_option('lifestyle_feature_cat_1'); $feature_cat_1_num = get_option('lifestyle_feature_cat_1_num'); if(!$feature_cat_1) $feature_cat_1 = 1; //setting a default ?> <h3><?php echo cat_id_to_name($feature_cat_1); ?></h3> <?php $recent = new WP_Query("cat=".$feature_cat_1."&showposts=".$feature_cat_1_num); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?> [img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" /> <?php else: ?> <?php endif; ?> <?php the_title(); ?> <?php the_content_limit(80, ""); ?> <div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div> <?php endwhile; ?> Read More Posts From This Category </div> </div>