Opened 21 months ago
Last modified 21 months ago
#18791 new enhancement
Add custom post type support for Author Template functions
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Template | Version: | 3.2.1 |
| Severity: | normal | Keywords: | needs-patch dev-feedback |
| Cc: | mikeschinkel@… |
Description
Functions defined in wp-includes/author-template.php assumes that post type == post. It will be good to enhance them so they will be able to work with specified post type.
At first sight following functions will need update:
get_the_author_link() the_author_link() get_the_author_posts() the_author_posts() the_author_posts_link() get_author_posts_url() wp_list_authors()
I suspect there will be other updates needed, to support new post_type argument added to author's url.
Change History (2)
comment:1
mikeschinkel
— 21 months ago
- Cc mikeschinkel@… added
comment:2
sirzooro
— 21 months ago
- Keywords dev-feedback added
WordPress already has WP_User class - probably it would be better to add new methods to it instead of creating a WP_Author class.
I wonder if it is possible to create posts without assigning any user as author (anonymous posting) - if yes, WP_Author class would be better solution.
+1.
Would it not make sense to consider creating a WP_Author class too?