Info
- 4 posts
- 3 voices
- Started 5 years ago by citizenkeith
- Latest reply from walkerevans
- This topic is resolved
Adding Location to User's Post Info
-
- Posted 5 years ago #
"Location" is in the user Profile, but doesn't appear when they post. I'd like to add it, so that it reads "Location: Ohio" or whatever.
I tried guessing and inserted this:
<?php post_author_location(); ?>But that didn't work. :(
And finally, are all these functions listed somewhere?
-
- Posted 5 years ago #
bump
-
- Posted 5 years ago #
I doubt that this is the most efficient way, but it seems to work. Add the following code in
post.phpin the default theme (/bb-templates/kakumei/post.php), you probably want it within the .threadauthor div.<?php $puser = bb_get_user( get_post_author_id() ); if ( isset( $puser->from ) ) { echo $puser->from; } ?>It is not possible to do this with a plugin yet because there is no hook there, but there is a Trac ticket for it.
Also, I compiled a list of all template functions.
-
- Posted 3 years ago #
Worked for me. Thanks!
-
You must log in to post.