“More” span making trouble

So, two separate issues – links not displaying and faulty markup? For links not displaying – check if your template uses the_content() function, more functionality doesn’t display links after the_excerpt(). For markup I find that you need blank lines around more for everything to work properly. So this can cause markup issues: Some text here. … Read more

How to show multiple post types on taxonomy archive?

As you point out, if you want separate loops for different post types you’ll need to use a separate WP_Query() for post type. In the template you can get the current term (ID) being viewed via: get_queried_object_id() (see source) $args = array( ‘post_type’ => ‘staff’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘themes’, ‘terms’ => get_queried_object_id(), … Read more

show custom posts types in archives

You can use the following code in your category archive template file. if (is_category()) { global $query_string; $post_type = get_query_var(‘post_type’); if ( !$post_type ) { // if no post type is already defined parse_str( $query_string, $args ); $args[‘post_type’] = array( ‘post’, ‘you-custom-post-type-here’ ); query_posts( $args ); } } You can also use the above code … Read more

Getting taxonomy terms used by custom post type

If you see doc for wp_list_categories in codex, you’ll se that it accepts a include param, that should contain a comma separed list of categorys ids. So if you change your function get_terms_by_post_type creating the function get_terms_id_by_post_type to retrieve only the term ids, just like: function get_terms_id_by_post_type( $taxonomies, $post_types ) { global $wpdb; $query = … Read more