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
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.