Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile links: nick and role

  • @archasek

    Member

    I want to have a link to profile in name of user instead of link to his homepage. how to do that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @wittmania

    Member

    I assume you mean on a topics/posts page. Find post.php, and insert this code wherever you want the name/profile link:

    <a href="<?php _e(attribute_escape
    (get_user_profile_link
    (get_post_author_id()))); ?>">
    <?php _e(get_post_author()); ?></a>

    I broke it up into several lines for easier reading here, but it should all be on one line. This will build the profile link using the post author’s name as the text for the link.

    @archasek

    Member

    works, thanks alot!

    @neyoung

    Member

    Thanks wittmana. The fix did exactly what I wanted ;p

    @savi4u

    Member

    Works great! Thx wittmania!!!

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