Setting posts_per_page for taxonomy term template

The taxonomy template you have (taxonomy-insight_type-academia.php) is in the form of (taxonomy-{taxonomy}-{term}.php), and the format for is_tax() is is_tax( ‘<taxonomy>’, ‘<term>’ ), so in your pre_get_posts callback, you should: // Use this. if ( $query->is_tax( ‘insight_type’, ‘academia’ ) ) // Not this. if ( $query->is_tax( ‘academia’, ‘insight_type’ ) ) Additionally — to avoid conflict with … Read more

Clone Terms of one taxonomy to another

Could you not just keep the same taxonomy and declare it on both CPTs?? That way both would inherit the same terms, at the same IDs, which would allow you to get posts from both CPTs if required. At your CPT creation, you can tell it which Taxonomies to use by setting a parameter of: … Read more

Get authors by term id or slug

Create a custom post type for authors associated with a specific tag and provide a field for author ID. Iterate over your array of authors and for each one create a new “tag author”. Finally, create a WP_Query for this post type to generate a paginated output of data associated with the author ID.

how to show only last child terms of a taxonomy

I wanted to display the terms with the get_the_term_list function so, since categories & taxonomy have a “similar logic”, I replaced the “the_category_list” add_filter( ‘the_category_list’, ‘ci_theme_the_category_list_remove_parent_categories’, 10 ); with “get_the_terms” add_filter( ‘get_the_terms’, ‘only_last_taxonomy_terms’, 10 ); and it does what I need.