Try It
You need is make a filter for wp_get_archives();
function custom_post_type_archive_yearly($where,$args){
$post_type = isset($args['post_type']) ? $args['post_type'] : 'post';
$where = "WHERE post_type="$post_type" AND post_status="publish"";
return $where;
}
Call this filter Hook:
add_filter( 'getarchives_where','custom_post_type_archive_yearly',10,3);
New you can Disply your Custom Post:
$args = array(
'post_type' => 'your_custom_post_type',
'type' => 'monthly',
'echo' => 0
);
var_dump(wp_get_archives($args));
Related Posts:
- Custom Post Type Archives by Year & Month?
- Get custom post type slug for an archive page
- Custom post type pagination 404 fix?
- How to remove “Archive:” label from archive title
- Why are posts from custom post type not displayed in “category” archive?
- Custom Post Type Archives by Date and Taxonomy
- Custom post types – Use post_id in permalink structure when using has_archive => true
- How do I display two separate taxonomy archives for two post types that share a single taxonomy?
- Custom Post Type Archives by Date with Custom Permalink
- How to add meta box to backend menu page
- Change title in head on Archive page
- Display Editable Text Above CPT Archive Listings
- Custom Permalinks for Custom post Type Archives?
- is_singular won’t call my functions?
- Pages, Custom Posts & Custom Taxonomy defining slug structure
- How to show a tag archive of one post type only
- Regex problem in an add_rewrite_rule
- paginate function in archive for custom-post-type
- Custom taxonomy archive page not working
- Change plugin’s has_archive = true to false?
- wrong template for page of archive
- How to show multiple post types on taxonomy archive?
- How to create archive page for taxonomy terms within custom post type
- Custom Post Type with static page for archive
- get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
- Category and post tag archives do not include posts from custom post type
- Slug for standard post post_type
- WordPress custom post type archive with description
- CPT: archive-cpt.php VS custom page template
- Get post type from taxonomy or category page
- Category page only displaying the posts from a custom type
- How to list custom post types?
- custom taxonomy archive by year
- Display custom post type taxonomies as an archive page
- Display CPT description on archive.php pages for all CPT
- Change name of custom post type archive
- When ‘is_post_type_archive()’ return true?
- Editable content on a Custom Archive page
- CPT Archive with core Category
- Custom Post Type Archive Page Filtering
- get the custom post type title/name
- Get archive post type name
- Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname
- URL of a custom post type’s post format archive?
- Filtering WP_Query
- Create template for taxonomy results limited by Custom Post Type
- Custom post type – get_day_link()
- WordPress showing archive.php instead page
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- Custom post type / taxonomy rewrite archive page 2 gives 404
- Is it better to use filter for the_content in archive pages?
- Custom post type posts don’t show in archive widget
- Archive for a Taxonomy of a Custom Post type
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- Custom Post type & Taxonomy 404
- Return the name of the post type
- Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?
- archive as a page, so that it can be added in the wp_menu_nav
- Archive links for custom post types
- Show All Custom Post Types On A Single Archive Page
- Custom Post Type setup
- Archive Page for Multiple Custom Post Types
- Dynamic category name in query post
- Custom Post Type Archive Pagination
- How to know which archive page is active
- Archive page for custom post type and custom taxonomy
- Archive Template being used instead of Category Template for Custom Post Type
- How to have multiple archive pages?
- Create a Custom Path to Archive
- Advanced archive url structure (category, tag and date)
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- How can I increase the post count for custom post types only?
- Listing authors and date archive from custom post type
- WordPress sitemap with Custom Post Types
- Is possible register two archive pages for single custom post type?
- Custom Post Type Archive Page showing as 404
- Custom Post Type archive page listing a 404 or single post
- Custom post type pagination problem – page 1 and 2 show same content
- Adding Custom Post Types to category/tag/author archives breaks header content
- The page or ad listing you are trying to reach no longer exists or has expired
- One of my headings is mysteriously coming up as a link in my CPT Archive
- I broke it! Custom post type archive gets redirected to home
- Want to display my custom date archive to date.php but dont know how
- Custom nav menu current item custom link problem
- Stop Custom post type from being searched via URL
- archive-{custom_post_type}.php not getting recognized wordpress
- Custom Post Types Archives and daily/monthly joke
- ‘Blog Archive’ suddenly appeared on custom post type; how to remove
- Display results from two Custom Post Types in page template
- How to make a list of posts displaying them 5 by 5 with a “next posts” link?
- Stop header code from showing in category page?
- is_singular won’t call my functions?
- Query Custom Post Type and sort by year
- Custom post types not using archive structure
- Pagination not working for archive
- Remove plugin’s custom post type archive page and single pages [closed]
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query
- Remove date rewrite rule for custom post type archive page
- Why using archive pages at all?
- Taxonomy term archive claims there are no posts, but there are. How to resolve?