Thank you very much for the quick reply. I am going to take a look at your code, but I got it working with this (added the last line here to get the current user):
function ListFiles($atts, $content="")
{
...
$current_user = wp_get_current_user();
added the last line above. Then on the first $folder line (line 64) I did this:
$folder = $this->_check_for_slashes($current_user->user_login);
Then my shortcode I remove the folder completely since it is being forced to the current user:
[MMFileList format=”table” /].
-
This reply was modified 2 years, 8 months ago by marcjc.