Version 1.0.35

This commit is contained in:
ultimatemember
2015-02-01 01:30:04 +02:00
parent df37a3164f
commit 539ebf10d7
41 changed files with 938 additions and 226 deletions
+14 -3
View File
@@ -21,9 +21,20 @@ class UM_Query {
extract( $args );
$custom_posts = new WP_Query();
$custom_posts->query( $args );
return $custom_posts;
if ( $post_type == 'comment' ) { // comments
unset( $args['post_type'] );
$comments = get_comments($args);
return $comments;
} else {
$custom_posts = new WP_Query();
$custom_posts->query( $args );
return $custom_posts;
}
}
/***