Thread Starter
zuko
(@zuko)
Just tried this and it kills the page
<?php global $current_user;
$current_user = wp_get_current_user();
echo do_shortcode( ‘[sabai-directory-listings return=”1″ user_name=”‘ . $current_user . ‘”]’ ); ?>
Thread Starter
zuko
(@zuko)
The following spits out all listings by admin
<?php echo do_shortcode( ‘[sabai-directory-listings return=”1″ user_name=”admin”]’ ); ?>
I want to place this code in the profile.php file in my wordpress theme to show the listings from the user the profile you are viewing at the time dynamically
Something like;
<?php echo do_shortcode( ‘[sabai-directory-listings return=”1″ user_name=”‘ . $userprofileID . ‘”]’ ); ?>
Thread Starter
zuko
(@zuko)
<?php echo do_shortcode( ‘[sabai-directory-listings return=”1″ user_name=”‘ . $current_user . ‘”]’ ); ?>
Would this work?