Created
April 14, 2015 13:44
-
-
Save dannewns/9fcf8a7a5791852f641f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'meta_query' => array( | |
array( | |
'key' => 'product_current_stock', | |
'value' => "(SELECT wp_postmeta.meta_value as min_stock FROM wp_postmeta WHERE wp_postmeta.post_id = wp_posts.ID AND wp_postmeta.meta_key = 'product_minimum_stock')", | |
'compare' => '>=' | |
) | |
), |
trovster
commented
Apr 14, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment