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
- Custom Post Type – Category Rewrite – Remove Rewrite from Sitemap
- How to hide html tags on revision comparison pages?
- Add filter by custom field to block of posts
- CPT archive redirects to single post
- Ajax post filters not working
- Default to ‘all’ view on the ‘edit-post’ screen for authors
- Show posts by a custom post author
- Display Meta Values in Custom Filter – Admin Custom Posts
- Custom loop pagination links not working
- Prevent Delete Attachment by URL or When Submit
- Enable Comments Box On Custom Post Type
- wp-cli post create & media import issues
- How to filter my search in post if contains a word in title, content or excerpt?
- More then one menu items are assigned with “current-menu-item” class
- Update post_content everytime a custom post is opened in backend
- filter RSS feed in URL
- How can i limit the number of posts created per category?
- Search results posts_orderby and ID
- Getting Custom Post Loop to display in Bootstrap 3 column grid
- Turn On Comments On Custom Post Types in Directory Theme
- Responsive images with custom image size
- Making a custom Pagination for multi page blog post
- ERROR: Your feed is invalid (after update WP4.7) in custom types
- Editing the default page to show all posts, rather than most recent ones
- Unable to restore from backup – how to obtain old blog posts?
- Posts and Attachments with “Published” status in Search
- Automatically add date to the auto generation of post slug
- Permission issue with custom post type – not added to menu – by plugin
- Duplicate Custom Post Type and Taxonomy Slug
- get query() without post content?
- How could I change my Permalink from blog to custom structure? [closed]
- Remove Custom Post Type Slug and add Custom Taxonomy to Permalink Structure?
- Take a received feedback item, turn it into a post
- Getting value from get_post_custom
- WP Admin register taxonomy and post type performance
- Add a custom meta box in the post options that loads some html code in the header
- Static posts page with home.php
- Calling Different Custom Post Timestamps in a table
- How can I setup a relationship using categories in WordPress?
- WordPress Multisite – Create Default Post and New Category On New Site Install
- Admin – create custom post status and display above table
- Exclude the first ‘n’ number of posts of a tag from home page?
- custom post template file not shown, instead all the time 404.php
- Set Default Category to Username
- posts_per_page option limits the number of Gallery items
- show custom post type category dropdown sorting result on same page
- Custom Post Type Rewrite To Include Parent Page(s)
- How i can limit period of post publication?
- Thumbnail & Category link aside post
- How to setup a query to output posts by groups of five?
- Redirect to another page using contact form 7? [closed]
- Trying to alter the post_content through the_post
- How to include my own css in post
- Exclude current custom post on single post
- Custom post types related to same custom post type?
- How do I insert a post with custom post type and relate it to a custom taxonomy?
- How to get posts and comments amount per hour, per year and per month?
- add to end of post in the loop with plugin
- Get all custom post types excepted some…
- “about us”, ” contact” sections should be article(post) or page in the simple small Business website?
- Add filter to the end of the post
- Get all comments of author’s posts
- First x post with another template then the others
- Why Query is returning empty array?
- Delete all drafts?
- Get post content with all filters applied, knowing post id
- Is it possible to customize the post according to post format in single.php?
- Customize rel=canonical tag for single blog post
- a little direction on custom post type
- disable Tab post on nav-menus page (Admin)
- Wrap every month posts in div
- Adding bootstrap classes to video shortcodes
- Is it possible to filter the main loop to exclude posts from a specific category?
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- meta_value timestamp older than now
- Counter is skipping post when I still want it visible [closed]
- Format latest/newest post differently
- Do not show children of a category
- Custom taxonomy archive page problem