MasterPress 1.3.1 is a compatibility release for PHP 8 and WordPress 5.7. It still remains backwards compatible with older PHP versions.
Integer $count = 1
The number of posts to retrieve.
Arguments $args = array()
An arguments array or string, as used in the WordPress function get_posts, which uses the same defaults as that function, with the following changes:
- orderby => “post_date”,
- order => “desc”,
- numberposts => $count (enforced)
- post_parent => 0 (enforced)
- post_type = any
This can also be made to use query_posts instead of get_posts, by setting a “query” parameter to 1.