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; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Showing posts from current profile’ is closed to new replies.