• Resolved Reed Sutton

    (@reedus33)


    We have a custom field representing a value in dollars. Trying to order from highest to lowest, however because meta_value is treated as a string, its showing $900 as higher than $1600. Is there a way to order by numerical value properly using the PODs shortcode?

    Shortcode:
    [pods name=”credit_card” orderby=”net_value_travel.meta_value DESC” limit=”5″ where=”rewards_program.meta_value=’Aeroplan'” template=”credit-card-table”]

    Page:
    https://frugalflyer.ca/credit-card/cibc-aeroplan-visa-infinite-privilege/

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Order by numeric custom field using shortcode’ is closed to new replies.