First grab the post ids by the author, and then the terms.
$author_id = '1234';
$taxonomy = 'clubs';
$post_ids = get_posts('fields=ids&post_type=post&post_status=publish&showposts=-1&author=". $author_id );
$clubs = wp_get_object_terms($post_ids, array($taxonomy));
$html = "<ul>';
foreach( $clubs as $club )
{
$html .= sprintf(
'<li><a href="https://wordpress.stackexchange.com/questions/134259/%1$s">%2$s</a></li>',
get_term_link($club, $taxonomy),
$club->name
);
}
$html .= '</ul>';
echo $html;
Related Posts:
- Removing the base “Author” or changing it to something else. is it possible?
- limit post by a taxonomy in the admin
- Variable Not Working Inside is_author() Array
- Automatically Populate Post Taxonomy Data Based on Post Author Meta Data?
- Change get_author_posts_url / Author URL via filter
- Replace post author in header by custom taxonomy
- get_posts assigned to a specific custom taxonomy term, and not the term’s children
- How can I get only parent terms?
- How to add images to taxonomies?
- Read-only taxonomy (user can assign term but can’t create or edit existing terms)
- Can you add the visual editor to the description field for custom taxonomies?
- Adding Category/Tag/Taxonomy Support to Images/Media
- get_terms does not return any results for my custom taxonomy?
- Sort Custom Post Type Archive by Taxonomy Term [duplicate]
- Large taxonomy (2000+ terms), causing WordPress to hang
- How to display warning on post editor when trying to add new term to custom taxonomy?
- How do you remove a Category-style (hierarchical) taxonomy metabox?
- Is it possible to have a taxonomy archive that lists taxonomy terms?
- Check if current term is a child of another term
- Is there a way to import terms into WordPress?
- get_terms() doesn’t return empty terms even though hide_empty is false
- Custom metabox for menu administration page?
- Remove Custom Taxonomy Base
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- Exclude Custom Taxonomies
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- Get custom category name from ID
- Set download limit and expiry for WooCommerce downloadable products in specific categories
- Populating dropdown menu with hierarchical taxonomies
- Storing data into custom taxonomies VS post custom fields (post meta)
- How to order a list of taxonomy terms alphabetically?
- get_the_terms issue
- ACF vs Taxonomies
- Reverse traversing taxonomy based on term_id
- Specifying a size when displaying an image associated with a taxonomy through ACF
- ‘wp’ action hook not firing in admin and login?
- How can marge these loop code?
- I used the Tax-meta-class by bainternet but i still can’t get it to display any of the results.
- Display all posts for taxonomy term across multiple custom post types
- Getting Term ID from Term Name for WordPress Query
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- Taxonomies on custom taxonomies
- Get list of taxonomies associated with Subscribers
- How to join result of different taxonomies?
- How to add Post Format Taxonomy Archive page in the menu?
- How to add custom label or texts in featured image
- wp_insert_term created and set for first once only
- Show all taxonomy’s terms’ posts having another taxonomy’s term in common
- Render P2P metabox per taxonomy term
- where is the 4th taxonomy terms? taxonomy terms is disaapearing in the loop
- Create custom taxonomy and Display in metabox dropdown
- Adding content to custom taxonomy category pages
- Display formatted list of taxonomy terms with last seperator different
- Are term IDs unique even between multiple custom taxonomies
- How to customize custom taxonomy url?
- What is the action hook that deletes a taxonomy term from the backend? And how to retireve the term id before deleting it?
- Trying to add taxonomy to get_categories() but it’s not working. How to fix this?
- Proper WP conditional tag to check for existing taxonomies to list out terms with wp_list_categories?
- Display a colour of custom taxonomy on the page
- Filter through custom taxonomy with an array of taxonomy IDs
- Add attribute taxonomy through code don’t appear in admin product page
- Search only custom taxonomies
- save custom term – hook create_term doesn’t work
- Several taxonomy query (like filter)
- How to get the term description in a taxonomy term archive query?
- Chaining Taxonomy Queries
- How to list terms by first letter, as in A’s then B’s etc
- Drop-down filter doesn’t retrieve custom taxonomies
- Taxonomy hide not working
- Admin only taxonomies?
- new custom filed not showing in taxonomy
- Rewriting url for multiple Taxonomies and Custom Post Type
- Why is the category item count not updating after assigning a category?
- Add custom taxonomy for post using cron job
- How to change custom categories term links?
- Body class to each level of a hierarchical custom taxonomy
- Dropdown (with onChange) with custom taxonomies
- How to limit custom post category
- How to get a terms and posts associated with another term?
- How to use two same taxonomy in same post differently?
- How to show one post content in another post content which has same terms?
- Custom taxonomy name not being translated in post manager page
- Get Posts by tag from a custom taxonomy
- Can I use multi (sub) levels of relation (AND | OR) on custom query?
- How to change taxonomy slug?
- Taxonomy to WordPress Permalinks of custom post type
- Avoiding stripping of HTML in Custom Taxonomy Meta Field
- Advanced AND tax_query in sidebar with 2 taxonomies
- How to update WordPress custom SQL Select query for custom taxonomies so that syntax is correct?
- Create WordPress taxonomies based on theme settings
- Alternative for is_taxonomy() to workaround theme’s default sidebar
- Can I use get_term_children to show child terms if they exist and show something else if they don’t?
- Displaying the custom taxonomies side by side on the admin dashboard
- Head Code for Custom Taxonomy
- Adding new terms to custom taxonomy
- List posts grouped by children of a custom taxonomy
- add_rewrite_rule pagination 404 error on page 4 and above
- Taxonomies starting with a hyphen (minus) to assign B.C. dates to a post
- Rewrite URL for a specific taxonomy [duplicate]