-
I added [userpro template=postsbyuser] to the profile page to display posts by users, and discovered that if you’re not logged in and at the profile page at example.com/profile/, posts will appear below the login form. I fixed this by editing userpro/templates/postsbyuser.php
In line 3, Replace this:
if ($post_query->have_posts() )
with this:
if ($post_query->have_posts() && ($userpro->permalink($user_id) != get_permalink()) )
Do you mind taking a moment to verify your purchase? http://userproplugin.com/userpro/profile/edit/
Also the problem is not clear to me, I am sorry 🙂
I have the same problem. If a user is not logged in goes to http://www.mysite.com/profile page, below the login form sees the post …
Can you shed more light on this issue? With a screenshot or explaination about the issue.
Solved with a solution by ericdude:
I added [userpro template=postsbyuser] to the profile page to display posts by users, and discovered that if you’re not logged in and at the profile page at example.com/profile/, posts will appear below the login form. I fixed this by editing userpro/templates/postsbyuser.php
In line 3, Replace this:
if ($post_query->have_posts() )with this:
if ($post_query->have_posts() && ($userpro->permalink($user_id) != get_permalink()) )Add this on the latest update please 😉
You must be logged in to reply to this topic.