Since you have not provided any code, below code snippet assumes a ‘property’ as post type and price as meta field. I think the code will provide you some direction and you can take it from there. Feel free to make changes as needed:
$args = array('post_type' => 'property',
'meta_key' => 'price',
'orderby' => 'meta_value',
'order' => 'ASC',
'meta_query' => array(array('key' => 'price','compare' => '=',))
);
$query = new WP_Query($args);
Related Posts:
- display ACF repater field in archive page
- Show posts without term
- Display posts the match taxonomy term linked from wp_list_categoies?
- Group posts by custom field
- Querying by taxonomy vs Querying by Custom fields Speed Comparison
- How to show only one post for each categories of taxonomy of custom post that contains a specific custom field
- Display link to taxonomy archive only if it has posts with certain custom field values
- wp_query to find posts by year and month
- Orderby is working with one query but not with other
- Get a list of posts with associated meta_value
- Order by empty custom field
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- Search form not working with custom query?
- Post loop for all taxonomy terms
- Custom taxonomy.php not working
- Conditional operator OR not working with custom fields
- WP ForLoop to compare meta information of posts to determine what post to display
- Check if a post has term inside loop
- Query only displays one page_id
- Query Taxonomy By Page Title
- How to _GET multiple value checkbox WP_Query in Custom Toxonomy / Custom Fields
- How do I stop the same post showing multiple times in a archive?
- Problem with my loops
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- WP_Query to show post from a category OR custom field – Not 100% answered
- WP_Query a custom field value bringing back 0 results
- Custom search (wp query by custom fields)
- Loop through multiple custom fields with increasing number
- How do I display posts with specific value in a custom field into my loop?
- tax_query not working properly with get_posts
- Using a custom WP_Query with get_template_part loop
- Merging a complex query with post_rewind and splitting posts into two columns
- Pagination Not working on Home Page with 2 Query
- meta_query not working properly
- Exclude post on loop by multiple meta key value
- Sort by meta key on archive page
- Custom Field sort not working (WP 3.8.1)
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Setup of taxonomy term template pages
- Ignore post by meta value in the main query
- how to search in custom fields & custom taxonomy for custom search
- How to do a query on custom taxonomies that is uncategorised?
- How to retrieve current page WP_Query arguments?
- Order taxonomy terms in alphabetical order
- How to limit WP_Query to one result on the loop?
- Query post from all category with same tag on 1 pages
- Random loop with code to prevent duplicate output returns no output at all from time to time
- showing all search result in one template
- List custom taxonomy terms sharing posts with a term from a second custom taxonomy
- WP_Query orderby modified to include custom meta changes
- Can I set my WP_Query to be a Main Query?
- Group and list posts by custom taxonomy
- Show scheduled posts in main loop but not in WP_Query?
- Change query based on post type while staying in loop
- meta_query BETWEEN, but the range is stored in the custom field
- $WP_Query: How to display excerpt on first post only
- How to make search for posts using get method?
- wp_query args adding muitiple tax_querys
- How to get list of posts from permalinks?
- Search posts missing a particular custom field
- how to use pre_gets_posts to exclude one queried ID from homepage loop
- Using WP_Query and Query_post for the loop?
- How to add custom meta to ‘pre_get_terms’?
- Get posts that do not have the same tags as current
- Should I reset $wp_query?
- Exclude a Woocommerce product from WP_Query
- WP_QUERY wrong ammount of posts
- How to add sort order to incremented and paginated category loop
- One WP_Query that always shows 1 post from category X and 1 post from “not in category X”?
- Posts query according to meta box date
- create metabox to activate slider
- Expecting statement error from php loop using ACF plugin
- How do I sort this custom list of sticky posts
- Display post meta conditionally based on it’s value
- List all Custom Post Type posts excluding certain Taxnomy term
- Get posts with no tags?
- wp-query, pull children of parent page
- I am officially missing something about transient posts
- How do I get the content of a custom instance of WP_Query?
- ACF: How to query for a given value count of an array like field? (e.g.: How many rows has a `flexible_content` field?)
- How can I have sticky posts while ALSO showing posts from a specific category using one WP_Query?
- How to use the Term Object from a custom select field in a query
- ACF: How can I publish values of ACF fields in a loop while using wp_query?
- Trouble with serialized metadata
- Show a message if there are no active posts in category
- Adding a Section for Visitors
- Sort posts on custom field AND after that sort on date?
- display the children of the post using the current page as the main parent
- Display 3 levels of categories on page
- Custom post type loop error: Trying to get property of non-object
- Display three sequential posts on each page load, without repeating previous
- How to make a wordpress loop file that displays posts based on certain conditions
- Issue in If else condition [closed]
- Pagination not working with WP_QUERY
- Order by multiple meta keys on wordpress
- Display First posts without the default featured image
- Can’t seem to get an else statement correct? [closed]
- Output ACF field dynamicaly within a taxonomy loop [closed]
- How do I split a large query with a semi-expensive function included into multiple smaller queries
- Woocommerce set loop_shop_columns to be 3 in the main shop page loop only and 4 otherwise