Support

Account

Home Forums General Issues Ordering by field order Reply To: Ordering by field order

  • Thanks but I have no idea what to put to the meta key.
    I cant find any reference regarding it. 🙁

    $args = array(‘post_type’ => ‘product’,
    ‘posts_per_page’ => 1,
    ‘meta_key’ = ‘?????’
    ‘orderby’ => ‘meta_value_num’,
    ‘order’ => ‘ASC’);
    $the_query = new WP_Query ($args);