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');