This commit is contained in:
Alpha
2020-07-13 09:41:00 +07:00
parent 6298197d8f
commit a5a053b025
10 changed files with 30 additions and 13 deletions

View File

@@ -198,6 +198,9 @@ class Opalestate_Query {
'post_type' => 'opalestate_property',
'posts_per_page' => isset( $args['posts_per_page'] ) ? $args['posts_per_page'] : 5,
'paged' => isset( $args['paged'] ) ? $args['paged'] : 1,
'post_status' => 'publish',
'order_by' => isset( $args['orderby'] ) ? $args['orderby'] : 'post_date',
'order' => isset( $args['order'] ) ? $args['order'] : 'DESC',
];
$condition = array_merge( $condition, $args );