A powerful method to retrieve a list of posts that are attached to this term, of a specific type, in a very concise and easy-to-use way.
This method uses get_posts to retrieve the posts, so you can further clarify this query with the args parameter.
Parameters:
-
The name of the post type.
-
An arguments array or string further clarifying the query used to retrieve the matching posts, with defaults:
- orderby => “date”
- order => “desc”
- posts_per_page => -1
- post_type => the value of the $name argument
- tax_query => The taxonomy query to match the other arguments provided (enforced)