#7749 closed enhancement (fixed)
LOOP and return Request: Enable echo=0 and style=none for wp_get_archives
| Reported by: | nublooo | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7 |
| Component: | General | Version: | 2.6.1 |
| Severity: | normal | Keywords: | archives, wp_get_archives, echo archives has-patch, commit |
| Cc: | Focuses: |
Description
An option of formatting the output of wp_get_archives in a similar way as wp_list_categories, for use in PHP before echoing it.
Suggestion: add the query-string-style parameter "echo" as in wp_list_categories and wp_list_pages to the archives function.
Attachments (2)
Change History (9)
#4
@
18 years ago
- Resolution fixed
- Status closed → reopened
- Summary Request: Enable echo=0 and style=none for wp_get_archives → LOOP and return Request: Enable echo=0 and style=none for wp_get_archives
JUST A MISTAKE : because return are in LOOP, the behaviour is not correct and not like than echo...
The better code must be for each loop and each end of loop in if/endif series :
if ($echo) echo get_archives_link($url, $text, $format, $before, $after); else $output .= get_archives_link($url, $text, $format, $before, $after); } } if (!$echo) return $output;
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Your wish is our command. :)