Skip to:
Content
Pages
Categories
Search
Top
Bottom

Call post author name, but no link!


  • devweb
    Participant

    @devweb

    Hi all

    I want to change the links to members on the wire to just the name displayed. I found this:

    function bp_wire_post_author_name( $deprecated = true ) {
    global $wire_posts_template;

    if ( !$deprecated )
    return bp_get_wire_post_author_name();
    else
    echo bp_get_wire_post_author_name();
    }
    function bp_get_wire_post_author_name() {
    global $wire_posts_template;

    return 'username';
    }

    As you can see, ‘username’ displays perfectly fine in place of the link or author name, but I want to call just the author name here without the link. The original filter that was here I fiddled with for hours but couldn’t change it, the above was the closest I have got!

    Can someone help please?

    Thanks very much

  • The topic ‘Call post author name, but no link!’ is closed to new replies.
Skip to toolbar