#628 closed enhancement (wontfix)
Hook for post author metadata
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0 |
| Component: | Front-end | Version: | |
| Severity: | minor | Keywords: | hook |
| Cc: |
Description
There should be a template hook for adding text below the username to the left of a post's body (in the default template).
Change History (7)
Also some solution to order stuff below the username/role. Let's say I jave installed the post count and avatar plugin, which one will be on top? What if I want the post count above the avatar or vica versa?
You could just use the post_author_title filter. That's how I do it here:
- Resolution set to wontfix
- Status changed from new to closed
The fewer the hooks there are in actual templates the easier it is to write new themes.
I think we have too many even now.
My general opinion is that plugins should ask their users to add
<?php if ( function_exists( 'bobs_whirly_gig' ) ) bobs_whirly_gig(); ?>
In their custom templates.
I do think we need to figure out exactly what and where we need hooks, but I think that needs to be done on the global scale rather than adding new hooks in piecemeal.
Please feel free to contribute more discussion (and even to reopen). I'm just closing this janitorially (is that even a word?).
Though I agree with what you are saying, I think this hook should be there. There are like 5 plugins needing something like this (avatar, post count, etc) and I think thats enough to justify a hook for this. Also looking at WP intergration (also avatars etc) this would be handy...
Replying to mdawaffe:
The fewer the hooks there are in actual templates the easier it is to write new themes.
I think we have too many even now.
My general opinion is that plugins should ask their users to add
<?php if ( function_exists( 'bobs_whirly_gig' ) ) bobs_whirly_gig(); ?>In their custom templates.
I do think we need to figure out exactly what and where we need hooks, but I think that needs to be done on the global scale rather than adding new hooks in piecemeal.
Please feel free to contribute more discussion (and even to reopen). I'm just closing this janitorially (is that even a word?).
I am sure anyone using the post count or avatar plugin would agree. Question is: below the username OF below the users role? (member, moderator)
Since more and more plugins need something like this, I've moved this request to 0.83 (plz don't shoot me for this :))