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.

How to filter products using filter products by attribute widget and OR logic between different product attribute types?

Issue #1 (nested tax_query with OR relation) After going through WordPress core and WooCommerce core, it appears query_type_bag-type=or (query_type_.$attribute) query arg is only changing the value of the operator key on the individual taxonomy array for the attribute. For example: query_type_pa_color=and = operator => ‘AND’ query_type_pa_color=or = operator => ‘IN’ You can see in the … Read more

How can i insert term in a specific language of Polylang?

You can actually make it this way: $cat1 = wp_insert_term( ‘Cat1’, ‘category’, [‘slug’ => ‘slug-cat1’], ); $agenda = wp_insert_term( ‘Agenda’, ‘category’, [ ‘slug’ => ‘slug-agenda’, ‘parent’=> term_exists( ‘Cat1’, ‘category’ )[‘term_id’], ], ); pll_set_term_language($cat1[‘term_id’], ‘fr’); pll_set_term_language($agenda[‘term_id’], ‘de’); Here is link to Polylang Function reference: https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/