Opened 7 years ago
Closed 7 years ago
#3110 closed defect (bug) (fixed)
wp_get_archives not working properly on daily view
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | Template | Version: | 2.0.4 |
| Severity: | normal | Keywords: | wp_get_archives bg|has-patch |
| Cc: |
Description
<?php wp_get_archives('type=monthly&show_post_count=1'); ?>
works and shows the post counts
<?php wp_get_archives('type=daily&show_post_count=1&limit=10'); ?>
doesn't show post counts (though the listing works)
what's wrong?
example:
Attachments (1)
Change History (4)
- Keywords wp_get_archives added
- Milestone set to 2.1
- Owner changed from anonymous to westi
- Status changed from new to assigned
- Version set to 2.0.4
- Keywords bg|has-patch added
Attached patch fixes wp_get_archives to show_post_count correctly for all archive types except postbypost for which is seems pointless (it will always be 1)
I also tidyed up the code a bit and removed some unecessary duplication.
Note: See
TracTickets for help on using
tickets.

wp_get_archives only seems to use this parameter for monthly archives (and the new yearly archives in 2.1.
I'll take this and put together a patch later today.