Support

Account

Home Forums General Issues Sort by customfield (price) Reply To: Sort by customfield (price)

  • umm I saw just array(3) { ["post_type"]=> string(4) "post" ["posts_per_page"]=> int(8) ["paged"]=> int(1) }
    but there was no ` ‘meta_key’ => ‘price’,
    ‘orderby’ => ‘meta_value_num’,
    ‘order’ => ‘ASC’
    `

    and are you sure that your price is really numeric?
    if your sql server locale uses ‘.’ as divider your ‘45,00’ will not sort as number