It was brought to our attention that MasterPress would give a tonne of warnings and deprecation notices when used with PHP 7.4 – this update addresses those.
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.
The name of the post type.
Arguments $args = array()
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)