Hi every one i am going to build mobile related website that show price higher to low for displaying price i am using custom field now i am unable to find query is there anybody have idea about this ?
You're not going to find a query. Queries are specific to the database you're using. You have to write the query (or pay someone to write it for you).
So you want like this http://www.parkerenschipholvergelijker.com/prijs-vergelijken/ you see (Prijs (van laag naar hoog)) and Prijs (van hoog naar laag) It is price high or low and it is a customize code.. If you want that type of script i will help, PM me or contact me via SKype/Gtalk: ashishkg17
Name your field whatever you like (just be consistent). So let's say your custom field for price is called "ItemPrice"... Your WP_Query for a list of "posts" or items is going to look something like this: $query = new WP_Query( array ( 'post_type' => 'product', 'orderby' => 'meta_value', 'meta_key' => 'ItemPrice' ) ); Code (markup): In order to grab the price while inside the loop, you'd call: get_post_meta(the_ID(), 'ItemPrice', true); Code (markup): Hope this helps.