Custom post type multiple loop by taxonomy term

Try: $tt = get_terms(‘my_custom_taxonomy’, array( // You can stick in orderby, order, exclude, child_of, etc. params here. )); foreach ($tt as $term) : // Output term name print $term->name. “: “; $q = new WP_Query(array( ‘post_type’ => ‘custom_post_type_i_use’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1, // = all of ’em ‘tax_query’ => array( ‘taxonomy’ => $term->taxonomy, … Read more

Sort posts by most recently modified

If you use WP_Query you can set the orderby to modified and then the order to DESC and you’ll be good to go. If it’s not a custom query, you can just use the set() method on the default $wp_query global to do the same. Since get_posts() is just a wrapper for WP_Query, you can … Read more

Displaying terms based on loop posts?

I think you can try the following options. wp_list_categories with the ‘show_count’ parameter http://codex.wordpress.org/Template_Tags/wp_list_categories get category and use $count = $category->category_count; http://codex.wordpress.org/Function_Reference/get_category You can traverse up the functions to get_term if those don’t work and see what is in there, even though you probably can use get the terms you will have to parse the … Read more