Do shortcode and usernames
-
Hello friends
I am trying to add the username of the currently logged in user into the shortcode in place of XXXX.
<?php echo do_shortcode("[listyofiles folder='/file/XXXX/']");?>
The do_shortcode works perfectly with the relative path, but I am struggling with adding a username.
Is this even possible?
- The topic ‘Do shortcode and usernames’ is closed to new replies.