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:
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Displaying category archive of custom post types
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Pagination throws 404 error on custom taxonomy archive pages
- Setting up custom post type archives in WP3.1? Any luck?
- Filter for “get_post_type_archive_link()”
- How to show more posts on an archive page?
- Multiple Paginations on one Page
- Create permalink structure for one taxonomy archive per custom post type
- Page is defaulting to archive page and not designated template
- Custom Post Type Archive URL takes over page URL
- Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?
- Display all custom post types in archives.php
- How to Add Pages Under Custom Post Type URL Structure?
- Custom Post Type Archives by Date (stored as meta value) WP3.1
- WordPress custom post type category pagination 404 Error
- Show Custom Post Type by Author
- Custom post type archive with pagination?
- Custom post type tag archives don’t work for basic loop?
- Removing CPT slug from URL results in 404 error for archive page
- Multiple post types in archives (filter?)
- How to let custom post type posts show in standard post archive (like in homepage)?
- Disable single pages and archives and keep preview
- Custom post type archive sorted and grouped by date in post meta field
- Custom post type with tags
- List custom post type but redirects to home page
- Custom Post Type with static page for archive
- Custom-post-type-archive: posts sorted/filtered by year?
- Custom post type archive page pagination
- Custom Post Types and archives
- Need post_type_archive_title function but in ‘single’
- Second Custom Post Type Archive
- How to show the archive / post type description on Single templates
- is_main_query() not working for WP REST API
- Hierarchical Custom Post Types – Show only parent on tax archive?
- Custom post types archive redirect
- just can’t get date-based archives per post-type to work
- Archive page for taxonomy terms
- How can i change the output of posts_nav_link();
- Root slug of taxonomy returning 404
- Custom Post Type with archive page but no detail page
- How to get post type and month/year before while loop for date.php file
- Why is my site using index.php instead of archive?
- Custom post type archive page blank
- Custom archive page for CPT UI
- How to display custom post in archive section of the wordpress page?
- Archive for CPT
- Custom post type posts don’t show in archive widget
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- Archieve.php not loading for custom post type
- Custom Post type & Taxonomy 404
- Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?
- Dynamically insert an article at the top of a taxonomy archive – or?
- Archiving custom post content?
- Archive links for custom post types
- Show All Custom Post Types On A Single Archive Page
- Archive Page for Multiple Custom Post Types
- Can’t access private custom posttype single- or archives-page
- 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
- Why does my URL keep returning 404 error code?
- Display CPT index page as front/home page
- 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?
- Display all Categories except ones with a specific parent
- Custom Post Type Archive Page showing as 404
- How to show custom post count in archive page
- Do not show child pages within a file page
- Archive for custom taxonomy
- 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
- 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
- How can I generate a list of post-type specific categories?
- Custom nav menu current item custom link problem
- date archive future posts
- Keep same archive.php for post from archive?
- Stop Custom post type from being searched via URL
- archive-{custom_post_type}.php not getting recognized wordpress
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- 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?
- Query Custom Post Type and sort by year
- Custom post types not using archive structure
- Pagination not working for archive
- WP Query + custom fields: How to query event posts from the current date backwards 6 months and organize it month by month?
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query