#7749 closed enhancement (fixed)
LOOP and return Request: Enable echo=0 and style=none for wp_get_archives
Reported by: | nublooo | Owned by: | ryan |
---|---|---|---|
Milestone: | 2.7 | Priority: | normal |
Severity: | normal | Version: | 2.6.1 |
Component: | General | Keywords: | archives, wp_get_archives, echo archives has-patch, commit |
Focuses: | Cc: |
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
@
16 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
- Summary changed from Request: Enable echo=0 and style=none for wp_get_archives to 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.
Your wish is our command. :)