I’ve looked over code and it doesn’t seem possible with this function.
Months and their post counts are fetched with raw SQL query, for months without posts there are simply no records in database. It doesn’t make effort to skip empty month, it simply doesn’t get those from database.
Related Posts:
- Archive list with only years and months
- How we display Archives for specific categories
- Custom archives function
- How to filter by date & a specific custom post type post-WP 4.4?
- Wrap the “show_post_count” between div
- Is a list page usually called an archive page in WordPress?
- Get current title of archive.php
- Get archives as array
- remove 2014 from wp_get_archives
- How to get post archives urls list without any markup?
- What do I need to style for the page after wp_get_archives?
- WordPress 3.6 – archive.php doesn’t get triggered [closed]
- Default archive URL wordpress
- Increase number of posts in archive page
- How do I place content on archive pages but not on main page?
- WordPress Posts By Date/Day?
- Preventing 404 error on empty date archive
- Date archives for custom post type
- Display list of Sub-Categories and the posts they contain, within one main Category
- Including post_type = ‘wiki’ in author archives
- Archive filtering posts by year and month
- How to get the date dynamically from archive.php to date.php?
- Count posts for each year
- How can I change the way dates shown in the archive widget?
- how do I get the date in a date archive page
- if in_category on archive.php
- Archive in sidebar with dropdown list of Year – Month – Day
- How can I organize/create an archive listing by Year and month
- Change behavior depending on content length
- How to edit archive page’s content inside wordpress dashboard?
- Archive pages for posts based on their taxonomy?
- How can I get archives for specific category without category_base in the url?
- condition for only if is archive for default post type
- Remove author archive
- Preview Post/Custom Post types in Archive
- Displaying year, month and day archives differently
- When i try to open archive pages i get a 404 error
- Archive links don’t work when clicked
- Group Posts by Category in Monthly Archive
- Loop through years and months in WordPress archives
- Dropdown to select posts by month and then displaying those posts in the archive page
- Custom post type archive page thinks I’m not logged in
- Is there a better way to do headings for (all) archives?
- Date Archive pages 404 error
- ‘Archive’ folder for posts and pages
- Constructing An if Statement with is_category(); in archive.php
- next and previous year month and day for archive page
- How to show months in wordpress archive page?
- How can I modify this to show number of posts-per-month?
- How to count the number of archives there are
- Get posts from a top category and group by child categories
- How to display an archive with multiple authors
- Why is my archive.php redirecting to front-page.php?
- How can I loop only months foreach year?
- Only display archive subtitle on the first archive page
- wp_get_archives doesn’t take effect from css or html
- Bootstrap Accordion with Dynamic content WordPress Archives Unique ID
- How to hide specific post type from archive?
- On my archives page, I can’t see my custom post types catergories
- How to get the Custom Post Type Archive inside a folder
- Add hour to archive link?
- WordPress archives in header -necessary?
- Blog pages show at most unrecognized by code
- pre_get_posts conflict with archive posts
- Any kind of custom post type in the front page and in the archive listing
- How to get the month argument from permalink in wordpress?
- Display an archives name
- Archive of year for some categories using the featured image
- Simplest Way to Build Custom Archives Page?
- Custom design calendar archive
- Over 500.000(!) unwanted archive pages, major duplicate content problem
- How to display dynamic additional contents on archive pages?
- How to show all the posts under the same Year in a page WordPress?
- How to share the author’s archive?
- How can I show a list of posts using the dynamic selection box?
- My page is shown as archive in my site
- How can I noindex my archive pages?
- How to prevent archiving and search engine caching in a free WordPress blog?
- Change Title Based on Taxonomy Filter in archive-{cpt}.php
- What’s wrong with default posts archive?
- How to create a completely functioning separate archive for posts from only 1 or 2 specific categories
- How do I add a count to each month in this archive code?
- How can I modify wp_get_archives() to not use archive.php template?
- Parent and child relation code and display only first child list
- Get all posts from db between 2 specified months
- Archive – Show Video from First Post
- Missing content on author archive page
- WordPress Archives Cause Looping
- Trying to hide subcategories which have categories without posts
- How to hide the year in archive link
- Show recent posts in single-post page
- Is each issue of a magazine site a static page
- How to create an archive section of a WordPress site
- How to remove “Archives” after category name?
- Display all posts from selected month
- Filter the post listing for a particular category from archive month list
- Create page like custom post type list in WordPress
- WP Archive & Category Pages not filtering
- List archive year – post by post
- How to have infinite scroll consider passed parameters?