You need to make use of meta_query
http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters
<?php
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
query_posts(array(
'post_type' => 'performance',
'posts_per_page' => 5,
'caller_get_posts' => 5,
'paged' => $paged,
'meta_key' => 'order-date',
'orderby' => 'meta_value',
'order' => 'ASC',
'meta_query' => array(
array(
'key' => 'order-date',
'value' => $value,
'compare' => '>=',
'type' => 'CHAR'
)
)
));
if (have_posts()) :
while (have_posts()) : the_post();
?>
Related Posts:
- Order post by year DESC and month ASC
- how “manage_posts_custom_column” action hook relate to “manage_${post_type}_columns” filter hook?
- Filter Posts By Tag
- Display page content AFTER a loop of posts
- Only display posts after current date
- How to start with post number x?
- Filter Custom Post Type by Category with Ajax
- WordPress custom Query for Posts in Category display posts multiple times
- How to allow visitors to filter posts by multiple taxonomies
- Dynamically switch template on click
- How to display only one category in a custom post type?
- Custom Select Query – Selecting the Year?
- Get current taxonomy and display query accordingly
- How Can I Always Display A Particular Post First Using WP_Query?
- How to add a custom class attribute into code wrapper? [duplicate]
- wp query custom orderby not custom field
- Custom Select Query pagination not working properly
- How to modify specific parts of a post content in WordPress
- Special Query: Title, Terms, Content – %LIKE%
- Display one post randomly from category on home page
- Need to show birthday of custom post type(Famous people in this case) in elementor. Date of birth set in custom fields
- How to display by default only published posts/pages in the admin area?
- Removing any and all inline styles from the_content()
- Post/Page Preview Template
- using wp_update_post on save_post
- WordPress plugin to publish to multiple remote WordPress blogs
- Using $wpdb to query posts with meta value containing current post_id
- Query posts from current year
- How to wrap every image in a post with a div?
- Filter posts by author and category simultaneously
- Show One Category on Post
- WordPress Delete hook with wp_delete_post function?
- How can I display a specific user’s first published post?
- Do I use custom post type or something else?
- Delete Post From Front-End and attachment permanently
- Custom post type permalinks breaking due to 3.1 bug fix
- ‘Invalid post type’ error when importing from one site to another
- Blogroll – Different layout for first post
- How to delete old posts’ edits to save space?
- Show Two custom Post type and their posts on category page
- Modify WP_Post before processing
- How to add Tags Filter in wordpress admin dashboard
- Get posts by name and taxonomy term
- Admin Posts Table Column Fitlering is not working for Custom Post Type
- Get Posts that are in the current month or later
- Get Meta Key Value While Saving Post
- How to make number of blog posts a custom field?
- WordPress blog or WordPress website
- Using custom post template
- Hiding Draft Post In Admin
- Ajax post filters not working
- Display Meta Values in Custom Filter – Admin Custom Posts
- Making a custom Pagination for multi page blog post
- Thumbnail & Category link aside post
- First x post with another template then the others
- Delete all drafts?
- Wrap every month posts in div
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- WordPress custom post type with folder structure in slug
- Filtering posts on Post Administration Page by Week Number instead of by Month
- Change the default blog post post attribute template name from “default template” to something else
- How to add automatically bootstrap 4 order-lg-1 and order-lg-2 classes for columns in foreach loop based on the count?
- Is it possible to add a shortcode below post title?
- Display post by click on the link
- Queries take 120+ seconds on my large WordPress site
- Show custom post with custom categories with specific slug
- Updating permalink structure using ‘post_link’ filter results in 404 error for posts
- How to call posts under a specific category on static front page?
- Optimize CPT-function with a loop
- Add post tags to previously created custom post type
- wp_list_categories() Exclude All Categories Except One
- Anyone know a php snippet for showing the first 200 characters of the most recent post?
- WordPress Post Deletion Issue
- MySQL: Possible to replace all of wp_posts.post_content(id#) via UPDATE + REPLACE + SELECT?
- Change modified date to current date when title updated automatically
- How do I display main query posts in random order using add_filter
- How to put the author of the post in the comments?
- Restricting displayed posts to posts from only select authors
- Check if almost 10 year old – working code is up to date
- Query custom post type custom meta key
- Redirecting wordpress search query to archive page
- Filtering private Posts
- Remove status ‘archived’ from the default post and page view
- How to invoke a HTML custom button based on a HTML dropdownlist menu
- Custom Post Types and Broken Permalinks
- The first post appears twice
- Customizing URL slugs of Custom Post Type and Taxonomy make posts/pages 404
- Show Posts By Custom Field
- Is it possible to completely replace a post with an action/filter?
- How to retrieve custom field values and save again as array
- Is there a Standard Format for Clean URLs for Archives of Custom Posts?
- Checking if some condition is matched before inserting post into database
- wp_query posts sorting doesn’t work
- How remove “recent comments” title without modifying code? [closed]
- How edit footer copyright info? [closed]
- Filters do not work when there are multiple (one works)
- I am using the query block and what I want and see on the editor page is not the same with the actual results
- Batch Scanning and Deleting Empty WordPress Posts
- WordPress Custom Post type csv exporter
- Edit Page button is gone