Author Page Link

This topic contains 5 replies, has 3 voices, and was last updated by  Stiofan O’Connor 6 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #424907

    Joy
    Buyer
    Post count: 1076

    Hi, I’m a little stuck with something and I’m hoping someone can help. I’d like to add a link for authors to easily access their listings. I found this(https://wpgeodirectory.com/support/topic/creating-link-to-author-page/#post-375948), but it’s not really working out. It’s appending /listing_link to the end of the url instead of the default: ?geodir_dashbord=true&stype=gd_place

    Any advise is appreciated.

    
    
    add_filter('geodir_dashboard_links','_my_dashboard_links',10);
    function _my_dashboard_links($dash_links){
            $author_link = get_author_posts_url( $user_id );
            $listing_link = geodir_getlink( $author_link, array( 'stype' => $ptype ), false );
    	$dash_links .= "<li><a href='".listing_link."'>Edit or Upgrade Your Listing</a></li>";
    	return $dash_links;
    }
    
    add_shortcode('dashlink', '_my_dashboard_links');
    #424927

    Guust
    Moderator
    Post count: 29970

    Can you please post your URL and WP admin details in a private reply so we can have a look.
    Are you not using UsersWP?

    Thanks

    #424961

    Joy
    Buyer
    Post count: 1076

    Hi Guust,

    It’s a site is development so I don’t have a link to share at the moment.

    But I am trying to get a link to use to get to the author page. Right now it’s accessible through the GD widget, but I’d like to skip the drop down option and replace with a link.

    Let me know if I can better explain. Thank you.

    #424995

    Guust
    Moderator
    Post count: 29970

    I do understand, but I have never seen anyone accomplish that successfully.
    But with UsersWP it is dead simple.

    Thanks

    #425014

    Joy
    Buyer
    Post count: 1076

    Giri provided that snippet, maybe he might have an idea how to adapt it. @giri, if you’re around…

    Thanks guys.

    #425102

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I am not sure what you are trying to do exactly, that snippet is not getting the user id from anywhere…

    Stiofan

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount