-
Basically I have a theme that post with author ?author=1 except for the posting functionality I want to control everything else like profile photo followers/following …etc with userpro. I have successfully gotten the profile photos to work but what’s happening at times if logged in as user A looking at user B, user B adopts some info from user A’s information. Here are some get codes I’m working with
Theme’s author code: <?php if ( is_user_logged_in() ) {
global $current_user; get_currentuserinfo(); ?>This is where the issue with user A looking at user B … user B info adopts user A’s. For example if ?author=1 has 1 post the count is correct when looking at user ?author=1 but if user ?author=1 is looking at user ?author=2 which my have 6 post it shows the count total of user ?author=1 instead.
I’ve tried <?php if ( is_user_logged_in() ) {
global $userpro; get_currentuserinfo(); ?>But then it does show the correct info for any of the ?author’s=
Another issue is I’ve placed userpro shortcode template view on theme’s author default profile page it shows up fine but if I click edit profile that loads fine but if I click view profile then, the profile photo goes to default placeholder and if I refresh the page it then shows uploaded profile photo.
Thanks
The post is a little confusing can you please add some more info (perhaps a screenshot or two?) Basically I can’t get what the issue is really 🙂
You must be logged in to reply to this topic.