Title: Showing posts from current profile
Last modified: September 1, 2016

---

# Showing posts from current profile

 *  Resolved [trinidee](https://wordpress.org/support/users/trinidee/)
 * (@trinidee)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/showing-posts-from-current-profile/)
 * I want to use the DPS Plugin with Ultimate Member and show a specific post type
   on their profile…
 * Displaying a specific post type is 100%. I was just wondering if there is a way
   to call the profile owner as the author instead of the current user that is logged
   in.
 * Any help would be super appreciated!!
 * I assume if I edit this code in some what I could make that happen? Still using“
   current” but instead calling the current profile owners posts instead.
 *     ```
       if( !empty( $author ) ) {
       		if( 'current' == $author && is_user_logged_in() )
       			$args['author_name'] = wp_get_current_user()->user_login;
       		elseif( 'current' == $author )
       			$args['meta_key'] = 'dps_no_results';
       		else
       			$args['author_name'] = $author;
       	}
       ```
   
 * [https://wordpress.org/plugins/display-posts-shortcode/](https://wordpress.org/plugins/display-posts-shortcode/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/showing-posts-from-current-profile/#post-7569725)
 * I recommend adding your own custom argument to the shortcode, then use the `display_posts_shortcode_args`
   filter to modify the query arguments for the user.
 * Here’s an example of creating a custom parameter: [http://www.billerickson.net/shortcut-args-for-display-posts-shortcode/](http://www.billerickson.net/shortcut-args-for-display-posts-shortcode/)
 *  Thread Starter [trinidee](https://wordpress.org/support/users/trinidee/)
 * (@trinidee)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/showing-posts-from-current-profile/#post-7569759)
 * Thanks Bill. Will have a closer look at that and see what I can do!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Showing posts from current profile’ is closed to new replies.

 * ![](https://ps.w.org/display-posts-shortcode/assets/icon-256x256.jpg?rev=2940963)
 * [Display Posts - Easy lists, grids, navigation, and more](https://wordpress.org/plugins/display-posts-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/display-posts-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/display-posts-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-posts-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-posts-shortcode/reviews/)

## Tags

 * [author](https://wordpress.org/support/topic-tag/author/)
 * [profile](https://wordpress.org/support/topic-tag/profile/)

 * 2 replies
 * 2 participants
 * Last reply from: [trinidee](https://wordpress.org/support/users/trinidee/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/showing-posts-from-current-profile/#post-7569759)
 * Status: resolved