Thanks to Milo I got some direction in debugging this. Basically only the post_type of ‘post’ was being used in the SQL query for the daily archive. We can hook into this with pre_get_posts (which I had used earlier by my function was too specific).
The function on this page, tells wordpress to include all post_types in its global $wp_query.
http://uncommoncontent.com/2010/10/12/custom-post-types-in-the-loop-using-pre_get_posts-refined
Related Posts:
- Why does my URL keep returning 404 error code?
- Custom Post Type Archives by Year & Month?
- Custom post types – Use post_id in permalink structure when using has_archive => true
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Archive page with multiple taxonomies rewrite
- Create permalink structure for one taxonomy archive per custom post type
- Date archives for custom post type
- Removing CPT slug from URL results in 404 error for archive page
- Regex problem in an add_rewrite_rule
- custom taxonomy archive by year
- When ‘is_post_type_archive()’ return true?
- CPT Archive with core Category
- Change custom post type slug from plugin options
- Change CPT archive title
- How to rewrite url for any specific taxonomy?
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- How to constrain the results to a specific post_type on tag archive page?
- Archive page for custom post type and custom taxonomy
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- Using get_post_type with a custom URL format?
- Want to display my custom date archive to date.php but dont know how
- date archive future posts
- How to display *block number* instead *date value* on WordPress posts?
- Remove date rewrite rule for custom post type archive page
- Making a custom help center page
- What’s the difference between same wp functions get_posts(); functions in different form?
- Custom taxonomy in URL showing 404
- How can i change the output of posts_nav_link();
- Relative URLs for a particular custom post type?
- I did group my search results by post type, but how can i give each of them its own order?
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- Dequeue scripts and styles only for specific custom post type
- Function to display custom post type on front page makes menu items dissapear
- Custom Taxonomy URL are redirecting to page with the same name
- custom post type not showing in menu
- Custom Post Type Archive Page Filtering
- Root slug of taxonomy returning 404
- How to have custom post type /example/ and then posts /example/posts.html
- Remove url rewrites for registered taxonomies
- Add archive slug to default post post type
- Custom Post type and permalink settings
- Show category ID on custom post type
- How to modify archive query with pre_get_posts to append CPTs?
- get the custom post type title/name
- How to customize a permalink (URL) structure?
- Get archive post type name
- Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname
- Custom Post Type with Templates using Meta Boxes?
- Rewrite slug of custom post type to include post-id
- Can I list a custom post type within another custom post type in the admin area?
- Default sort on admin columns with meta date hides draft posts with empty date value
- URL of a custom post type’s post format archive?
- Filtering WP_Query
- WP_Query most viewed posts, in multiple Post Types, last 30 days, excluding a specific taxonomy term
- Rewrite rules for custom posts types
- Custom Post Type with archive page but no detail page
- Rewrite post type slug only for child theme
- Create template for taxonomy results limited by Custom Post Type
- wp_list_categories() – current-cat class also inside posts?
- Custom Post Types, URL rewrite on multiple CPTs
- Can’t edit custom post type
- How can we take into account post types when constructing permalinks?
- 404 Issue w/ Custom Post Type – using Meta for Permalink rewrite
- Custom post type – get_day_link()
- Get Taxonomy Term Title by it’s URL
- Set URL link to featured image of custom post type
- Taxonomy custom post type URL
- How to change custom post type permalink structure
- AJAX load more for different custom post type loops
- PHP variable not regenerating when publishing multiple posts at the same time
- Front custom edit post page for each post
- Adding custom post category slug in permalink causes 404 error for pages and posts
- Categories of Custom Post throws gives 404
- On update or create post redirect to current post position in list
- How can I use get_post_meta with add_rewrite_rule to build custom permalinks?
- I need to add endpoint for wordpress categories
- How to build custom route by adding taxonomies to URL ? ex: www.demo.com/communities/palo-alto/
- Can’t get custom rewrite tag, query var, permastruct (permalink structure), and rewrite rule to work properly together
- 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 target a specific custom post type post and its all children and grandchildren?
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- Custom rewrite url category
- Featured image overlay when changing post status
- Rewrite Question Mark in Post Template to Make it Pretty URL
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- How to get post type and month/year before while loop for date.php file
- get_post_meta not working on publishing
- Index page with the same id as the slug
- Post count by month of taxonmy term
- Redirect 404 page with ID in slug to associated page with same ID in slug
- WordPress wrapped added a span tag to every single p tag
- ACF field key/value to show on taxonomy list
- Re-registering a custom post type not working (not showing up)
- Display featured image from one CPT within another CPT query
- How can I make the slug of the taxonomy also the slug of the custom post
- Query taxonomy of taxonomy of custom post type
- Best way to style first post differently?
- WordPress custom post type permalink rewrite shows page not found