#4420 closed enhancement (fixed)
Standardize wp_list_authors like the other wp_list_* functions
| Reported by: | johannesries | Owned by: | jacobsantos |
|---|---|---|---|
| Priority: | lowest | Milestone: | 2.8 |
| Component: | Template | Version: | 2.3 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | Focuses: |
Description (last modified by )
Would be great if <meta name="author" content="<?php bloginfo('authors'); ?>" /> would generate <meta name="author" content="Name 1, Name 2, Name 3" />.
Attachments (2)
Change History (21)
#4
@
19 years ago
wp_list_authors() outputs links to the author pages, with no way to turn it off. It also doesn't have any sort of formatting options like "between" to allow you to specify a comma and such. It also only outputs a list, using LI tags.
I agree that wp_list_authors() should be extended to cover this sort of thing, preferably by adding a lot more options:
- link: 0 or 1, to enable or disable showing the links
- before, after, between: to put text before,after,between each author
and so forth... Standardize it with all the other wp_list_* functions, basically.
#5
@
19 years ago
- Summary Add list of authors to get_bloginfo → Standardize wp_list_authors like the other wp_list_* functions
#6
@
19 years ago
- Keywords has-patch 2nd-opinion added
I used the patch from ticket 5407 to make this one
#12
@
18 years ago
- Keywords needs-patch added; has-patch removed
- Milestone 2.7 → 2.8
Unlikely to be committed. Would be nice to get it out of the way.
#13
@
18 years ago
- Keywords has-patch needs-testing added; needs-patch removed
Needs serious testing to ensure it still works.
If you want:
<meta name="author" content="Name 1, Name 2, Name 3" />
Then you would use this code snippet:
<meta name="author" content="<?php wp_list_authors('html=false; style=string'); ?>" />
#19
@
14 years ago
thanks for sharing Magan Fox Plastic Surgery
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Meh, I could see the *uses* but it could be done with wp_list_authors() I'm pretty sure. Not sure though.