get_terms and get_posts return arrays not objects.
Try this:
<?php $disciplines = get_terms('disciplines');
foreach($disciplines as $discipline) {
echo '<li><a href="#">' . $discipline['name'] . '</a></li>';
$post_args = array( 'post_type' => 'users', 'disciplines' => $discipline['term_id']);
$posts = get_posts( $post_args );
foreach( $posts as $post ){
echo 'post title: ' . $post['post_title'] . '<br />';
}
}
?>
Related Posts:
- Is it possible to add taxonomies to user profiles?
- Custom taxonomy on users with UI
- User role permissions based on taxonomies
- Share taxonomy between user and posts?
- How to add taxonomy to user?
- get the taxonomies terms associated with users
- Taxonomy Meta Box in User Profile?
- WordPress cannot find user taxonomies on frontend
- list custom taxonomy with count
- How to add a custom user taxonomy column to “All Users” in users.php?
- Get all users attached to a taxonomy
- Custom Taxonomy user based creation
- How to query authors by custom taxonomy?
- Exporting CSV of users with custom user taxonomies out of WordPress
- Hierarchical taxonomy UI
- Filtering custom taxonomies
- Allowing specific users to only add posts using certain custom taxomy terms
- Edit tags page for hierarchical taxonomy doesn’t show taxonomies at all depths
- I want to load post content by categories using Ajax
- Get only the first term by taxonomy
- Removing taxonomy base using WP rewrite
- Is it possible to get a Previous/Next Taxonomy term archive URL?
- Which template name to use for taxonomies but not their terms?
- WP_insert_term how to insert multiple values as taxonomny term?
- How to include parent terms in hierarchical taxonomy URLs?
- How do I display a tag cloud with both post tags AND a custom taxonomy?
- Custom taxonomy term as class?
- How to edit/remove a term that’s in multiple taxonomies?
- Fix : Custom Taxonomy Duplicating in each call
- Create Admin Only Taxonomies?
- Text and image in taxonomy page
- Custom taxonomies
- Improving WP_Query performance for multiple taxonomies
- Create Child Taxonomies
- How to add custom field to custom taxonomy in 4.4
- Extending wordpress search to include excerpts and taxonomies?
- How to create custom taxonomy URLs without taxonomy name?
- How to insert an array of terms using wp_insert_term?
- Create Advanced search with taxonomies (not filter list)
- Show nav link highlighted
- How to get custom post type taxonomy
- display taxonomy slug from term ID
- remove sanitize_title() for register_taxonomy()
- Redirect all child taxonomy to its parent
- How to use get_the_terms() to display multiple terms?
- List posts of term on term’s admin edit page
- Can I use a Custom Meta Value inside of ‘get_the_terms’?
- has_term if/echo else/echo function
- Taxonomy Order by Name
- add hirarchy of categories in products grid of visual composer
- taxonomy tax-name archive
- Widget dropdown always displays first option
- Adding custom taxonomy in my existing category URL
- Custom Taxonomy Tag Cloud?
- single_cat_title equivalent for custom taxonomy?
- WP Multisite: Are custom taxonomies specific to each site only?
- Make child taxonomy categories use a set template
- How to customize taxonomy archive template files for subterms?
- Copy/clone/associate Custom field to Custom Taxonomy
- Query posts using custom taxonomy and selected terms
- Foreach loop duplicating a taxonomy thumbnail image
- Load a certain functions file for a certain taxonomy
- Output all terms in a custom taxonomy and add a “active” class only to the ones attached to the current post
- one post per term taxonomy
- Custom permalink accept any params
- Terms change id after importing
- How do I get the labels from a post
- Hide custom taxonomy from easy admin
- Displaying user selected custom tags/taxonomies on the front-end
- how to use tax_query to apply both terms or one if one is empty
- Get current page term title to use in WP_Query
- Show related posts on single.php, grouped by taxonomy terms, with Advanced Custom Field post object selected
- Running a function only once when a taxonomy term is changed
- making an index from custom taxonomies and tags of posts (not hierarchical taxonomy)
- Displaying my custom taxonomies in a using the_term_list()
- Using Custom Taxonomies to organise products – struggling to call a correct list
- Use wp_list_categories to list parent categories from actual term
- is there a way of getting term children that only shows those from two taxonomies
- Wp_insert_term doesn’t work from separate file with custom taxonomy
- How to create filter’s for custom taxonomy page
- How to create a non removable taxonomy term?
- How to show category list in WordPress
- Query by multiple custom taxonomies
- get the custom taxonomy name?
- transfer two existing taxonomy terms into one custom metabox
- How to add all existing Custom Taxonomy to Admin Menu Creations Interface?
- Catchable fatal error: Object of class WP_Error
- Templates files for custom post type with custom tags
- Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)
- Creating a Taxonomy Page [duplicate]
- Extra fields on categories that is available via the WP-API?
- What’s the proper WordPress URL for the template of my custom taxonomy?
- WordPress show posts from children terms of a taxonomy term
- how to import custom taxonomy (& terms)
- How to randomise a custom taxonomy tag cloud
- How to create a page that lists custom taxonomies with links?
- query posts returns 10 records
- How to add/enqueue Custom CSS for a custom taxonomy page?
- Two taxonomies with the same slug
- Hook function when taxonomy terms change