Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Adding Location to User’s Post Info


gtim
Member

@gtim

I doubt that this is the most efficient way, but it seems to work. Add the following code in post.php in 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.

Skip to toolbar