user ID not working, displaying posts by all users
-
Hi,
I’m having an issue displaying a sticky list, where the list only contains entries that have been inputted by the current user.
I have used the following code, which as explained in the documentation, and other threads in this support forum, should work:
$user_id = get_current_user_id(); echo do_shortcode( "[stickylist id='3' user='" . $user_id . "']");
What am I doing wrong??
Thanks,
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘user ID not working, displaying posts by all users’ is closed to new replies.