Is there any way to determine if a particular custom post type will be displayed on default archive pages or search results?
e.g. Given a post type named (badly) books, is there a way to tell via code any of the following:
- If books show up on date archives
- If books show up in search results
- If books show up in author archives
I know how to make custom post types show up in these, but I've been doing a bit of digging and can see no clean way to determine if a particular custom post type will show up in any of the above or not.
The main reason I'm looking for this is that I'm creating custom breadcrumb bars for a theme... and it would be nice to be able to show an authors breadcrumb bar if the custom post being viewed supports author functionality and shows up in the author archive.