From a3dfb82a78aa1aa4bb71a97c352a19a77c746fad Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Thu, 16 Nov 2017 16:25:52 +0200 Subject: [PATCH] - fixed posts on user profile page; --- templates/profile/posts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) { ?>
- +