Custom meta_query order for Elementor based on post meta key [closed]

Assuming that you want to get posts with that meta key, regardless of content, and order by that meta value, you would need to set two properties. meta_query orderby So the code, based of your question would be like this // Custom query to order ‘recommended reading’ posts by populatrity add_action(‘elementor/query/my_custom_filter’, function ($query) { if … Read more