Skip to:
Content
Pages
Categories
Search
Top
Bottom

Link to profile

  • how can i make the following link to the posters profile, rather than the post. thanks

    `<?php
    printf(
    %3$s‘,
    get_author_posts_url( p2_get_author_id() ),
    sprintf( __( ‘Posts by %s’, ‘p2’ ), esc_attr( p2_get_author_name() ) ),
    p2_get_user_avatar( array( ‘user_id’ => p2_get_author_id(), ‘size’ => 48 ) )
    );
    ?>`

Viewing 1 replies (of 1 total)

  • r-a-y
    Keymaster

    @r-a-y

    The `bp_core_get_user_domain()` function is what you’re looking for.

    Try passing the author ID to that function.

    eg. `bp_core_get_user_domain( p2_get_author_id() )`

Viewing 1 replies (of 1 total)
  • The topic ‘Link to profile’ is closed to new replies.
Skip to toolbar