Hello Sara, As far as I know we don’t have any existing shortcode to display my listing link.
But don’t worry. I have created one for you. just place this in your child theme and then use this shortcode in your editor.
[gd_my_listings_link]
function gd_add_my_listings_sc($atts) {
$defaults = array(
'stype' => 'gd_place',
);
$params = shortcode_atts($defaults, $atts);
if (is_user_logged_in()) {
global $current_user;
$author_link = get_author_posts_url($current_user->data->ID);
$author_link = geodir_getlink($author_link, array('geodir_dashbord' => 'true'), false);
$listing_link = geodir_getlink($author_link, array('stype' => $params['stype']), false);
$listing_link = apply_filters('geodir_dashboard_link_my_listing', $listing_link, $params['stype'], $current_user->ID);
return $listing_link;
}
return "";
}
add_shortcode('gd_my_listings_link', 'gd_add_my_listings_sc' );
Let me know how that goes.