📜  通过元值 int 获取发布订单 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:05.750000             🧑  作者: Mango

代码示例1
$defaults = array(
      'numberposts'      => -1,
    'post_type'        => 'agent_listing',
      'meta_key'           => 'oepl_order_no',
      'orderby'          => 'meta_value_num',
      'order'            => 'ASC',
      'suppress_filters' => false
);

'orderby' => 'meta_value_num', // for int field
'orderby' => 'meta_value', // text field