How to rename author link for author archive listing page

This topic contains 11 replies, has 3 voices, and was last updated by  Paolo 8 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #56551

    syrus
    Free User
    Post count: 9

    The problem is with the author archive listing page name having the name “author” being part of the url. Because of the url uses the name “author” as part of the url link, that links to the author listing archive, it interferes with my setup using my plugin that changes the name “author” to “user” so all wp authors profiles can be redirected to my ultimate members profile member pages instead and it also allows me use another author widget plugin that populates the authors avatar and profile url link for each geo directory listing that is published by the author and when the avatar or url is clicked by other users, it will take them to the author ultimate members profile page right from that author geo listing who created the listing. Because your author archive listing page is made up using the “author” name in the url example: http://www.mysite.com/author/username/?geodir_dashbord=true&stype=gd_place, it gets redirected to my ultimate members profile instead of taking the author to his author archive listing page as well, because the author archive listing page uses the name “author”. I understand i have 2 options to resolve this issue, 1) option is to create a new author page with a new author url, but from what i understand this feature has not been created cause short codes have not been created yet from what i read here from a past post, so i understand for now it is not possible. my 2nd option and only option is to rename the author archive url using a hook or rename in .htaccess if possible, if you can possibly give me some help with this matter i would greatly appreciate it, i have been trying to fix this for a week now and have not brought addons yet for geo directory because of this issue. any and all help would be much appreciated.

    #56564

    Guust
    Moderator
    Post count: 29970

    The third option is to use BuddyPress and the GD-Buddypress integration, if I understood you correctly. No need to customize anything, and perfect integration.
    I’ll get Paolo to look at your question too, he might have other tips.

    #56566

    syrus
    Free User
    Post count: 9

    Thanks for responding. Im sorry BuddyPress is not a option, as mentioned in the post above, we are currently using ultimate members plugin for our member profiles. We were not aware that your plugin features relied on using BuddyPress, i noticed that this seems to be the answer that’s keeping getting mentioned in all other post concerning all other author archive support issues or help. Thanks, we would appreciate any help on this matter once again from you or Paolo.

    #56568

    Guust
    Moderator
    Post count: 29970

    GD is not dependent or relies on BuddyPress. GD will perfectly work without it, but a lot of members asked for it.
    I have now found this post for you, while we wait for Paolo:
    https://wpgeodirectory.com/support/topic/showing-the-current-users-listing-detail-in-their-dashboard/#post-42099

    #56576

    syrus
    Free User
    Post count: 9

    Thanks for the post link Guust, but i have read the post lots of times before i decided to ask for support. I will try to explain a little more clear on the issue. My issue is actually a little different because ultimate members actually provide many many settings in the WordPress admin to set ultimate member profiles to redirect, change the user profile slug and gives you the option to use profile user id, username or display name. Along with so many other options that basically allows you to have your member profiles anyway you choose. This is also besides the features it provides and support. The problem is actually the geo Author listing page having the slug use the word “author” part of the url. The reason is Geo doesn’t populate the author of the geo listing avatar and link to the author profile to allow other users who view the listing to know who made the listing. So to accomplish this feature, i use the Meks Smart Author Widget plugin https://wordpress.org/plugins/meks-smart-author-widget/. With this widget plugin, it actually populates the author who created the geo listing Avatar and Profile link in the side bar in the author listing page, but because im not using the default author WordPress profile and instead im using ultimate members profile, when the user clicks on the author avatar or link in the geo listing, that will be redirected to the default wordpress author profile instead at mysite.com/author/username, so to prevent this, i use the Edit Author Slug at https://wordpress.org/plugins/edit-author-slug/, this allows me change the “author” name to “users” in the default WordPress url for authors. so now when the author avatar and profile link is clicked from the author geo listing, the user get taken directly to the Author profile with Ultimate Members. So because of this, when the author of the geo listing try to view his listings, he is redirected to his profile instead of his geo directory listings page because geo directory uses the word “author” in the slug url. Please understand, that this issue will be with anyone using the default WordPress profiles not just us because the geo directory uses “author” in there slug. So basically it stops anyone from having the freedom to change the default WordPress author profiles without interfering with the author geo listing page, cause the slug uses “author” in the url. It will be useless for us to not have the author avatar and url to there profile on there listing page so other users cant see who made the post and view there profile. I must admit the plugiin is top notch and we will like to use it, but we need a way to either change the author archive listing link url with “author” or have the ability to make a whole new listing page template that will allow us to have a different page name or slug. So this why we are asking for support cause we have virtually read all the post dealing with author archives and have been trying to resolve this issue for a week now. any help would be so much appreciated.

    #56610

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the simple problem is that neither us, nor the ultimate members develoeprs have done anything to make our plugin compatible at the moment.

    Currently there is no way to do what you want to do. As long as another plugin redirects the author page, the GD dashboard will became unusable.

    In that case the GD inforamtion must be pulled and used within the new profile, just like we did for the buddypress integration.

    If you wish to see us building this integration, please submit a feature request here: https://wpgeodirectory.com/requests/ if many other members will vote for it, we will consider it.

    Otherwise you can ask to the Ultimate Members developer to work on it.

    Thanks

    #56642

    syrus
    Free User
    Post count: 9

    Thanks, but we were only looking for a way to create a new author listing page or rename it, so it doesn’t use the word “author” in its url. We are not at all looking to integrate ultimate members, because the issue doesn’t reside with the ultimate members plugin, the issue is just having the author geodirectory listing page url using the word “author” and not having a way to create a new “author” listing page or at the least, being able to rename the url so it doesn’t have the word “author” that WordPress uses inside its urls as well. Ultimate members allows you to create every page such as the user page, directory page, login page, etc by simply inserting a short code in the page, but geo directory it not that universal and we have no control over the pages created or the names of the urls associated with the pages, which is ok, cause geodirectory it still a very great plugin, but its very hard when you use the default WordPress roles such as “author” as part of the names in the urls with geodirectory pages. This is where the problem relies. I know this may seem not like a big issue, but it really is, cause actually, on all of our other sites, we don’t even use the archive pages. Simply, cause we choose to not let others know we are using WordPress and so do many others company’s and individuals.

    #56648

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you can only have 1 author page. That is defined by WordPress Template hierarchy.

    https://codex.wordpress.org/Author_Templates

    Using Ultimate Members removes the GD Dashboard. Because both use the author template to start with.

    The only way to do this is to add the content that you normally find in the GD dashboard within the Ultimate Members profile.

    I hope it is clearer now.

    Thanks

    #56651

    syrus
    Free User
    Post count: 9

    I’m sorry but i’am able to use ultimate members fully with no problem together with geo directory and have a fully functional gd dashboard that works properly. So this is not the issue at all if im actually already using everything without any problems together. It seems you are not understanding my issue at all, i was asking for a solution to rename the “author” listing page url or a solution to create a new author listing page, so i can be able to use my “author” urls for another purpose. If the page is for geo directory listings plugin, i don’t see the purpose or reason for it to use WordPress archive page or use the “author” name in the url. Because of this, im limited for using my site with other plugins that enhance the author features. I appreciate your support and for you taking the time out and replying back. If there is not a solution with your plugin at this time, please let us know, thanks again.

    #56652

    Paolo
    Site Admin
    Post count: 31206

    I think I’ve already replied.

    GeoDirectory uses the author template for its dashboard. There is no way to change that. You can rename author to anything you want using a function, but that will not change the fact that it still be using the author template.

    For example:

    
    
    function change_author_permalinks() {
    global $wp_rewrite;
    // Change the value of the author permalink base to whatever you want here
    $wp_rewrite->author_base = 'member';
    $wp_rewrite->flush_rules();
    }
    add_action('init','change_author_permalinks');
    

    This will change author page permalink to member.

    You cannot get that data in any other page at the moment.

    Thanks

    #56653

    syrus
    Free User
    Post count: 9

    Ok thanks for your support and time paolo. I appreciate everything.

    #56655

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

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

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

Open Support Ticket