Open aliguy opened 6 years ago
Hey @aliguy,
This should be possible with a custom WP_Query that contains a meta_query for the simplefavorites_count metadata value.
WP_Query
simplefavorites_count
e.g.
$query = new WP_Query( [ 'post_type' => 'post', 'orderby' => 'meta_value_num', 'meta_key' => 'simplefavorites_count', ] );
You can take a look at custom field parameters for the WP_Query class for more information.
note: haven't had a chance to personally test this code, but in theory, it should work ðŸ’
Hey @aliguy,
This should be possible with a custom
WP_Query
that contains a meta_query for thesimplefavorites_count
metadata value.e.g.
You can take a look at custom field parameters for the
WP_Query
class for more information.note: haven't had a chance to personally test this code, but in theory, it should work ðŸ’