• Hello and thanks for checking.

    Whatever share plugin I install -I tried many, Sassy, AddToAny, Shariff, and others-, they only pickup the Page url, but not the rest of the uri string that is generated by Name of user on ultimate Member.

    So if my structure is site/member/this-ultimate-member The share plugins will only pick site/member and share that url, which obviously is not what we want since it ends up by sharing the generic page and not the public profile we want to share…

    Any idea why this happens and possible solution?

    (by the way I tested it on different websites)

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @sebacrispo

    Please try adding this to your Theme’s function.php file or Code Snippets:

    add_filter('post_type_link', 'wpse33551_post_type_link', 1, 2);
    function wpse33551_post_type_link( $link, $post = 0 ){
        if ( $post->post_type == 'page' && um_is_core_page("user") ){
            return um_user_profile_url( um_get_requested_user() );
        } else {
            return $link;
        }
    }

    The above code will modify the User page permalink to append the profile URL.

    Let us know if this works for you.

    Regards,

    Thread Starter Seba

    (@sebacrispo)

    Hi @champsupertramp

    Thanks for your reply…

    I tried adding the code to theme’s functions.php but it made no change… still shares a url as this: sitename/page/ Page Title

    Any specific plugin you think would work with that solution?

    Thanks again

    same issue

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Share buttons and Profile Uri’ is closed to new replies.