• Resolved eavy

    (@eavy)


    I create page for logged users, and get parameters:
    get_currentuserinfo();
    $current_user->ID,

    etc..

    How i can add this parameter on shortcode

    [usp_display_posts userid=”xx”]

    or function:

    <?php if (function_exists(‘usp_display_posts’)) echo usp_display_posts(); ?>

    that display posts of only current logged user?

Viewing 1 replies (of 1 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Like this would be easiest:

    <?php if (function_exists('usp_display_posts')) echo usp_display_posts(array('userid' => $current_user->ID)); ?>

Viewing 1 replies (of 1 total)

The topic ‘Show posts by current user’ is closed to new replies.