It’s very good that you are using Advanced Custom Fields.
Use this for assigning running dates to movie and by making use of WP_Query you can call movies wherever is matching date.
For fetching posts you can use following code:
$args = array(
'post_type' => 'movie',
'meta_key' => 'date',
'meta_query' => array(
array(
'key' => 'date',
'value' => array('2016-10-08'),
'compare' => '=',
),
),
);
$query = new WP_Query( $args );
Related Posts:
- Used with meta_query in query_posts works slowly
- Display only one post each WEEK
- How do I query a custom post type with a custom taxonomy?
- Is It Possible To Add Custom Post Type Menu As Another Custom Post Type Sub Menu
- what is the correct way to compare dates in a WP query_posts meta_query
- Create a custom archive page for a custom post type in a plugin
- How to get post content by calling ajax?
- How to show all posts of the category in wordpress?
- Media library – Limit images to custom post type
- Get the ID of the latest post
- Using meta_query, how can i filter by a custom field and order by another one?
- How to Add Custom Taxonomy To Woocommerce Plugin
- Return all custom meta data for one custom post type
- Display a query with multiple post types and same relationship on a single page
- Fail to compare dates in meta_query
- How to filter custom posts by tags and custom fields?
- Development of a WordPress Search Plugin – Best Practices
- Order by & include array by specific post ids
- Prevent trash/delete action on specific post types
- How to call a custom post with get_posts() instead of query_posts()?
- How to add custom content template part for a custom post type on main query using a plugin
- WP_query parameters for date range
- Change capability type of post type registered by plugin
- Custom post type archive 404’s with paginate_links
- Make future posts visible to the public—not just within WP_Query
- Rewriting ‘rewrite’ slug for custom post type used by plugin
- echo value from ‘select’ field type into page template using cmb2?
- register_taxonomy with multiple object type and update_count_callback
- Display Custom Post Type Fields
- Querying custom posts and regular posts
- How often do you need to register_post_type?
- Loading Custom Post Type Events into jQuery-based FullCalendar?
- Limit the post for differents custom post type in the same wp_query
- post_type_link filter causes 404 on the CPT page it’s used on
- How to use a dedicated template for the Custom Post Type from a plugin?
- Retrieving 3 latest post from each of 5 different custom post types
- How to hook get_terms() to only show count of posts that have custom meta
- Add Capabilities to Custom Post Type after it has been created [duplicate]
- Using Offset in Custom Post Type Query
- how to group custom post type posts by custom taxonomy terms
- order by meta_value serialized array
- Posts per Page on custom Taxonomy Template
- Include images from pages in wp search.php results in default wp search
- Using Query Posts With Multiple Post Types And A Taxonomy
- Separating Search Results By Post Type
- How to get the parent’s taxonomy?
- Loading post content in FancyBox
- List events by month
- Date query for a custom meta field
- Query posts by custom post type and custom taxonomy
- Maintaining WP_Query Relation Among CPT, Custom Taxonomy, Permalinks- CPT UI
- Change plugin’s has_archive = true to false?
- Getting arguments for register_post_type from a plugin generated post type
- Multiple templates for custom post type
- Query post types with multiple keys
- ascending order custom post type
- posts_nav_link on single post template
- Query not returning CPT posts
- Post Rank on Single Post page based on custom field
- update a post meta from a single table cell TablePress
- update custom post type meta from a shortcode
- Remove POST_TYPE from custom post type permalink
- Query posts between two dates (custom meta keys) CMB2
- How to localize value of posts
- How to get only one category of custom post type?
- Change upload_dir folder at a certain cpt but cant change back
- Unable to display multiple post types in same query (WPML WP_Query)
- How to add post_author column to custom post type
- pre get posts changing the query
- How to register custom post types in a plugin?
- Query for posts in 2 taxonomies
- Display custom taxonomy as dropdown list
- Prevent change with new query_posts()
- How to make an archive page displaying posts in a date range
- Get permalink and title by post name?
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- Custom Post Type sorted by Title
- Get all posts WHERE custom_field is LIKE value
- Quickest way to get last or oldest post date – WP Query
- How to display recent posts added in several custom post types
- How to append element after thumbnail
- Best practice for adding posts in bulk
- ‘category__and’ for custom taxonomy?
- Post the content of a specific “Custom Post Type” post within a post using a shortcode
- Conditionally Query Custom Post Types by Post Meta for Blog Home Page?
- Display custom post types with custom date field value (before today) & order by custom date field
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Hide Meta Boxes for Non-Admins
- Update content of multiple pages/posts at once?
- reference the current category being used in the category.php page
- How to dynamically build a multiple taxonomy query loop within a post type’s single loop?
- List custom post type by custom tax term as page title
- Issue to get wp_get_attachment_image with cmb2
- How to have the right design for a custom post type without accessing themes
- Best action hook to create custom post and assign taxonomy terms to it on plugin activation?
- query_posts with a custom post type, a meta_query and sorting by post date?
- Custom Post Type | Fatal Error on register_post_type()
- Set object terms not working on plugin activation
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- Custom query shows custom post types in trash