Show category name, and last 5 post titles below category name?

you haven’t stated where the category id will come from, nor how you want to style the category title, and if the post titles are supposed to be linked to the single post; therefore just the basic structure: <?php $cat_id = 137; echo ‘<div class=”category-title”>’.get_category($cat_id)->name.'</div>; $cat_posts = get_posts(array(‘category__in’ => array($cat_id), ‘posts_per_page’ =>5)); if($cat_posts) { echo … Read more

Woo Framework: woo_cat_featured not populating

So I fixed it by changing array( ‘taxonomy’ => ‘category’, ‘terms’ => array( $woo_options[ ‘woo_cat_featured’ ] ), ‘field’ => ‘ID’, ‘operator’ => ‘IN’ ), to array( ‘taxonomy’ => ‘category’, ‘terms’ => array( $woo_options[ ‘woo_cat_featured’ ] ), ‘field’ => ‘slug’, ‘operator’ => ‘IN’ ), Specifically: ‘field’ => ‘ID’, to ‘field’ => ‘slug’, . I’m not sure … Read more

How do I make the category sidebar widget (stock) display the total # of posts including those in subcategories?

This isn’t THE answer, but it’s one answer. Quick fix: Have my clients check two boxes whenever they use a sub-category. (sub-category box + parent category). This will ensure the post-count is correct. Events [x] Meals and Mission [x] Would love a fix that didn’t depend on clients checking both boxes all the time.