Is There A Way To Have A Profile And Author Archive?

This topic contains 12 replies, has 5 voices, and was last updated by  Andy 5 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #5568

    Will Hill
    Free User
    Post count: 73

    Hello,

    So I set up UserWP for a new portion of our site that is working with GeoDirectory, and everything looked fine, except that now our author archives were all replaced with the Profile pages. Is there a way to have both normal author archives, and profile pages for authors with listings?

    #5569

    Alex Rollin
    Moderator
    Post count: 27815

    The profile page takes over the author archive, yes, the same way that BuddyPress member profiles take over the author archives. There isn’t a way to ‘uncover’ the author archive, no.

    #5570

    Guust
    Moderator
    Post count: 29970

    Make sure you add “Posts” to the profile page, and the UsersWP profile should display the same data as the author archive.
    Thanks

    #5707

    Andy
    Free User
    Post count: 46

    This does look possible to me.

    If you go to WP Admin –> Users WP –> General tab –> Profile –> Show Advanced you can then check the option “Disable author link redirect to UsersWP profile page.”

    That stops UsersWP overriding the author profile link in archives etc.

    It also creates a horrible redirect loop (clearly a bug in UsersWP) but if you add this filter it then fixes the redirect loop:

    add_filter(‘uwp_check_redirect_author_page’, ‘__return_false’);

    I am now able to get to both the standard author archives and the UsersWP profile page.

    #5710

    Will Hill
    Free User
    Post count: 73

    Andy,

    That did it! Thank you! I’d tried disabling the redirect but got stuck in that same loop. Thanks for giving me that workaround!

    #5718

    Andy
    Free User
    Post count: 46

    No problem. I was looking for a fix myself and found this thread.

    I’m not a support person, just another user. Hope I’m not doing the wrong thing by posting here.

    Watch out for this causing other problems, though, like the tab links on the UWP profile page pointing back to the author archive URLs. I noticed that and will need to figure out a fix. There may be other snags but it does seem to deal with the overall issue.

    #5732

    Patrik
    Moderator
    Post count: 1971

    Hi,

    The above filter “add_filter(‘uwp_check_redirect_author_page’, ‘__return_false’);” or “Disable author link redirect to UsersWP profile page.” setting will work for you and regarding redirect issue, we have applied fixes and will be available in the next release.

    Regards,
    Patrik

    #5735

    Will Hill
    Free User
    Post count: 73

    Andy,

    Yeah, I’m getting that problem now too. The author archive works well now, but the profile page doesn’t. Maybe I’ll just implement a short term fix while we wait for the patch Patrik mentioned.

    #5750

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
    #5753

    Will Hill
    Free User
    Post count: 73
    This reply has been marked as private.
    #5762

    Patrik
    Moderator
    Post count: 1971

    Hi,

    The changes are there in the latest update we have released. Can you please update and check if it resolves your issue or not?

    Regards,
    Patrik

    #5764

    Will Hill
    Free User
    Post count: 73

    Patrik,

    I can tick the “disable author link redirect to UserWP Profile Page” button and it will bring author pages back, but if I do that then the /profile page redirects to the author page. Since that is not what I want to do, I’ve unticked the box now.

    #5787

    Andy
    Free User
    Post count: 46

    This seems to be the right filter for fixing the tab links etc.

    function wr_userswp_profile_link($link, $user_id) {
    	$link = str_replace('/b/author/','/vendors/profile/', $link);
    	return $link;
    }
    add_filter('uwp_profile_link', 'wr_userswp_profile_link', 10, 2);

    Change the code to return the right link for your actual pages/permalink structure.

Viewing 13 posts - 1 through 13 (of 13 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket