Version 1.0.21

This commit is contained in:
ultimatemember
2015-01-24 23:39:43 +02:00
parent 63820a8ad8
commit 2c3cf6ea8c
22 changed files with 468 additions and 43 deletions
+20
View File
@@ -6,6 +6,26 @@ class UM_Query {
}
/***
*** @Do custom queries
***/
function make( $args ) {
$defaults = array(
'post_type' => 'post'
);
$args = wp_parse_args( $args, $defaults );
if ( isset( $args['post__in'] ) && empty( $args['post__in'] ) )
return false;
extract( $args );
$custom_posts = new WP_Query();
$custom_posts->query( $args );
return $custom_posts;
}
/***
*** @Get last users
***/