https://wpgeodirectory.com/support/topic/display-users-listings-shortcode/
This was brought up in another thread and resolved although I’m unable to replicate the results. I have created a folder called bp-custom in wp-plugins and created a file called bp-custom.php which contains this code:
<?php global $current_user;
get_currentuserinfo();
echo do_shortcode( ‘[gd_listings post_author=”‘.$current_user->ID.'”]’)
?>
I am using shortcode on members home pages to show their own listings and listing types.
Here is an example of that shortcode:
[gd_listings post_type=”gd_solar_installer” layout=4 post_number=”4″ list_sort=”high_review” post_author=”‘.$current_user->ID.'”]
I have also tried “post_author=”current”” to no avail.
Can you please instruct me on how to get this to work?