diff --git a/templates/profile/posts.php b/templates/profile/posts.php index 564aff4f..77091e12 100644 --- a/templates/profile/posts.php +++ b/templates/profile/posts.php @@ -1,4 +1,4 @@ -query()->make('post_type=post&posts_per_page=10&offset=0&author=' . um_user('ID') ); ?> +query()->make('post_type=post&posts_per_page=10&offset=0&author=' . um_get_requested_user() ); ?> shortcodes()->loop = apply_filters('um_profile_query_make_posts', $query_posts ); ?> @@ -13,7 +13,7 @@ shortcodes()->loop->found_posts >= 10 ) { ?>