• Hi everyone.. I’m new on this forum
    I’m having some problems with the stickylist shortcode.
    I would like to add a filter on the shortcode based on the current user id, like this:

    [stickylist id=”6″ field=”24″ value=$user]

    where $user is the current logged in user ID.

    Anyone can help me?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • I may be able to use this as well.

    Plugin Author fried_eggz

    (@fried_eggz)

    Try something like this in a template file:

    $user_id = get_current_user_id();
    echo do_shortcode( "[stickylist id='6' field=”24″ value='" . $user_id . "']");
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add User ID in shortcode’ is closed to new replies.