#4420 closed enhancement (fixed)
Standardize wp_list_authors like the other wp_list_* functions
Reported by: | johannesries | Owned by: | jacobsantos |
---|---|---|---|
Milestone: | 2.8 | Priority: | lowest |
Severity: | normal | Version: | 2.3 |
Component: | Template | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
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
@
17 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
@
17 years ago
- Summary changed from Add list of authors to get_bloginfo to Standardize wp_list_authors like the other wp_list_* functions
#6
@
17 years ago
- Keywords has-patch 2nd-opinion added
I used the patch from ticket 5407 to make this one
#12
@
16 years ago
- Keywords needs-patch added; has-patch removed
- Milestone changed from 2.7 to 2.8
Unlikely to be committed. Would be nice to get it out of the way.
#13
@
16 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'); ?>" />
#15
@
16 years ago
- Owner changed from anonymous to jacobsantos
Can someone test this as to whether it is ready to go?
Meh, I could see the *uses* but it could be done with wp_list_authors() I'm pretty sure. Not sure though.