• Hey, thanks for this plugin, i try to find something like this since a long long time ago !

    Ok so, i have a custom field called “prix”, i exclded € and display price like this 10.50

    I put this to sort by ASC

    register_custom_queryable_field("prix", array("dataType"=>"numeric", 'order' => 'ASC',));

    But i doesnt work with

    ?prix=ASC or ?order_by=prix=asc

    How i can do to fix it ?

    Plese help me guys ??

    https://www.ads-software.com/extend/plugins/custom-query-fields/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jetaisriche

    (@jetaisriche)

    with this

    ?order_by=prix

    Post display in ASC

    How i can do to sort by DESC ?

    Hey man

    Try this in functions.php

    register_custom_queryable_field(“schema_product_price”, array(“dataType”=>”numeric”, “order” => “ASC”,));

    The problem was: ” not ‘

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Price by ASC and DESC’ is closed to new replies.