Your address will show here +12 34 56 78

Home Forums WP ESTATE – Real Estate WordPress Theme FORUM Advanced Search Results – Sort Listings By Price

This topic contains 0 replies, has 1 voice, and was last updated by  Anna 3 years, 1 month ago.

  • Author
    Posts
  • #58973

    Anna
    Keymaster

    Go to advanced-search-results.php

     

    Look for this code
    ‘meta_key’ => ‘prop_featured’,
    ‘orderby’ => ‘meta_value’,
    ‘order’ => ‘DESC’,

    Replace with

     

    ‘meta_key’ => ‘property_price’,
    ‘orderby’ => ‘meta_value_num’,
    ‘order’ => ‘DESC’,

     

    Make sure to manually write the PHP code so you don’t copy any wrong formatting.

     

    Thank you
    Anna

You must be logged in to reply to this topic.