If I understand your question correctly, you can do the following:
- Identify the template being used to output your custom posts (or create one)
- Within this template, intercept the $_GET variable for date, sanitise it and parse it into a date that you can use in your posts query.
- Query the items (if you’re using the post date for date, you can use that; otherwise you can use a meta query to query on a meta value if you’re doing it that way).
Along the lines of
$day = date('d',strtotime($_GET['date']));
$month = date('m',strtotime($_GET['date']));
$year = date('Y',strtotime($_GET['date']));
$args = array(
'posts_per_page' => -1,
'year' => $year,
'monthnum' => $month,
'day' => $day,
'post_type' => my_post_type,
'order' => 'ASC',
'orderby' => 'post_date',
);
$myitems = get_posts($args);
Related Posts:
- Mixing custom post type and taxonomy rewrite structures?
- Rewriting a custom-post-type permalink with taxonomy term?
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- Custom Post Type and Taxonomy URL rewrite
- How to modify URL structures in custom post types and taxonomies or terms
- Archive page with multiple taxonomies rewrite
- Custom post type taxonomies URL rewrite
- Create permalink structure for one taxonomy archive per custom post type
- Taxonomy archives based on Custom Post Type
- Custom permalinks
- Multiple custom post types using the same taxonomy = URL frustrations
- Permalink rewrite with custom post type and custom taxonomy
- Issues when rewrite rules collide?
- Custom Permalinks for Custom Post Types and Taxonomies
- WordPress returns 404 on custom rewrite rule conflict in parameters
- How to rewrite custom post type URL for multiple depths instead of one specific depth
- Custom post type category, taxonomy and URL rewrite problem
- Custom Post Type/ Taxonomy URL rewrite
- Category base to url in custom post type/taxonomy
- Is slug “type” reserved and can’t be used in taxonomy rewrite?
- how to get archive urls with same origin for custom types and terms?
- Permalinks when filtering multiple custom post types by single taxonomy
- multiple url slug for single custom post type
- custom taxonomy archive by year
- Pretty URLs for Custom Post Type & Custom Taxonomy with Duplicate Slugs on WPML
- How can you handle rewrite rules for custom post types with option to filter on custom taxonomy terms?
- Custom taxonomy in URL showing 404
- Custom Taxonomy URL are redirecting to page with the same name
- Remove url rewrites for registered taxonomies
- wp_list_categories() – current-cat class also inside posts?
- Custom Post Types, URL rewrite on multiple CPTs
- Get Taxonomy Term Title by it’s URL
- Taxonomy custom post type URL
- Adding custom post category slug in permalink causes 404 error for pages and posts
- How Can I Change the Custom Post Type Slug to the Taxonomy Slug in the URL?
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- How to rewrite url for any specific taxonomy?
- Custom post URL 404 error
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- Custom taxonomy rewrite with query var returns %2F in URL
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Remove slug in URL custom post type
- Custom Permalinks with CPT and Hierarchical Taxonomies
- WordPress uses url different from defined in rewrite arg of custom post type
- URL rewriting for CTP assigned entity
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- Including taxonomy term before post type breaks top level pages
- Correct procedure for advanced permalinks
- CPT’s with landing page instead of archive – Url Rewrite?
- How to get list of taxonomy slugs ordered parents>childs?
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Taxonomy in URL
- Custom taxonomy and post type with same slug
- Best way to specify “article type” in URL
- Custom URLs in post types make it impossible to view archive
- I can’t access custom taxonomy page listing
- post_type_link Filter – Too Few Arguments
- Add term slug in URL of custom post type details page
- Custom Post Type Advanced Slug
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- WordPress custom permalink and archive link for custom post type
- How to rewrite the post slug of a custom post type post
- Modifying rewrite rules to use /category//
- Custom Post Type View Button in Admin Gives 400 Error
- Taxonomy rewrite pagination 404
- Archive page for custom post type and custom taxonomy
- Custom Post Type URL Rewrite’s
- Custom taxonomy terms as children of multiple custom post types
- Remove cpt slug from url and use custom taxonomy instead breaks all other cpt
- Custom Post Type & Taxonomies – Rewrite
- Remove custom permalink base from CPT custom category and custom tags
- How to properly set the rewrite rules for this case?
- How to handle this wordpress custom post type rewrite problem?
- Define multiple prefixes for custom post type
- Display CPT taxonomies as an archive page
- Change CPT permalink to use the category
- How to fix 404 on post after prepending Custom Post Type url with Custom Taxonomy Term slug
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- Pretty Permalinks with CTP and Taxonomies / Hierarchical
- Customise Permalink Structure For Custom Post Types
- Custom post type structure + permalink structure
- Custom URL for Custom Post Type & Custom Taxonomy Term
- Custom taxanomy and custom post type – pagination leads to 404
- Flush rewrite rules when new cpt is registred
- How to build overlapping custom post_type and taxonomy rewrites without conflicts?
- I have a custom taxonomy assigned to two post types. How do I create URLs for different term archives for each post type?
- Custom Post Type rewrite url to /category/pagetitle [duplicate]
- Remove custom post type slug but keep related category taxonomy permalink
- page not found for example.com/custom-post-name
- Force WordPress to only match URL in category
- Why won’t this rewrite rule work?
- Parent cpt/child custom post type URL permalink relationship
- Customize category URL
- Custom post type and custom taxonomy archive inaccessible
- Custom Taxonomy in Permalink from post type
- How to change custom post type slug without damage seo? [closed]
- Custom Post Type with multiple Custom Taxonomies / Hide Taxonomy Slug from URL
- Custom post type with custom taxonomies structure url not working archive of CPT