![]() |
I currently have the following:
I would like to order the values by the meta key "Status", then "Asking Price". How do I do both? Solution - 1http://www.mattvarone.com/wordpress/query-multiple-meta-values/ Solution - 2what the possible value for "Asking Price" and for "Status" ? Solution - 3Hi, Please use this code: new WP_Query('post_type=listings&meta_key=Status&orderby=meta_value&order=DESC&meta_key=Asking Price&orderby=meta_value_num&order=DESC'). You can change value "DESC" for testing. Tnks for reading Phucvh |
Wordpress |
Type: | Code Example |
Category: | Coding |
Sub Category: | Code Example |
Uploaded by: | Admin |
Views: | 7 |