Title: Show posts by current user
Last modified: November 25, 2020

---

# Show posts by current user

 *  Resolved [eavy](https://wordpress.org/support/users/eavy/)
 * (@eavy)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/show-posts-by-current-user-2/)
 * 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](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/show-posts-by-current-user-2/#post-13709273)
 * 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.

 * ![](https://ps.w.org/user-submitted-posts/assets/icon-256x256.png?rev=2567685)
 * [User Submitted Posts – Enable Users to Submit Posts from the Front End](https://wordpress.org/plugins/user-submitted-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-submitted-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-submitted-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/user-submitted-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-submitted-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-submitted-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/show-posts-by-current-user-2/#post-13709273)
 * Status: resolved