Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding Location to User’s Post Info


  • citizenkeith
    Participant

    @citizenkeith

    “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?

Viewing 3 replies - 1 through 3 (of 3 total)

  • citizenkeith
    Participant

    @citizenkeith

    bump


    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.


    walkerevans
    Member

    @walkerevans

    Worked for me. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar