Skip Navigation

[Resolved] Need Help Integrating Toolset Views with Ultimate Member Public Profile Pages

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 9 replies, has 2 voices.

Last updated by Minesh 1 year, 3 months ago.

Assisted by: Minesh.

Author
Posts
#2632351
Screenshot_2023-08-09-21-55-57-456_com.android.chrome-edit.jpg

Hi Toolset Support Team,

I hope you're well. I'm having trouble integrating Toolset Views with the Ultimate Member plugin on my website.

Here's what I'm trying to do:
1. I've set up user public profiles using Ultimate Member.
2. I've also created subprofiles as custom posts called "Contractor" and want to show them on user public profile pages using Toolset Views.
3. The URL structure for public profiles is like: hidden link, where "usertester" is the username.

I've tried different methods, including configuring Views and using URL parameter-based query filters, but I can't get the right results. Oddly, when I'm logged in as an admin, I'm seeing posts from testing users.

Could you please guide me on properly setting up Toolset Views integration on Ultimate Member profile pages? It seems I need help with implementing a query filter based on the URL parameter to display the correct "Contractor" subprofile in a Wiew.

I'd really appreciate your assistance in solving this. Thank you for your expertise and support.

Thanks!

#2632377

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share admin access details and tell me on what page you want to display what posts for what user profile link?

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2632961

Before that, do you have any recommendations for me to try? Is the permalink format OK, which option should I choose?

#2633527

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Here is the detailed doc about how you can create custom user profiles:
- https://toolset.com/documentation/customizing-sites-using-php/creating-custom-user-profiles/

The link should be: hidden link

Here is another Doc that might help you:
- hidden link

But as you are using Ultimate Member the it uses the "user" slug for user profiles. Can you please check first with Ultimate Member plugin support if they allow to display the user profile without loggedin and if no, how you can display the user profile to non loggedin user. If they share information then I will be able go guide you in the right direction.

#2634871
Screenshot_2023-08-17-22-13-11-731_com.android.chrome-edit.jpg

Hello!

Yes, probably /user/ in the link is a problem.

Every user's profile page is accessible through the Members page.
The URL link remains the same whether the user is logged in or not. I will disable maintenance mode, so you can go to Potrahive.com and click on 'Members' in the main menu to see the list of users, as well as the public profile page of each registered user. Please note that everyone has the same image and name in the (highlighted section of the profile page in the screenshot) what is wrong, that section is provded by the View (custom post of subprofile).

#2635045

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Yes - can you please send me admin access details.

Also, tell me where did you configure the user profile page?

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2638327

The user profile page is created automatically by the UM plugin, after user sign up.
Obviously usual page with UM shortcode. Below their part (provided by UM shortcode), I want to add a View with data from the custom post "Contractor"created by user whose public profile is , (it is not an account page, but an audience profile).

hidden link (Members page where you can see all publice profiles)

hidden link (Public profile page of the test user where the custom post should be shown in View, only for this user (others have not been created)).

Custom post "Contractor" can be created through link on the frontend Account page (please create another new test user account).

Please let me know any changes you make as this is the original site also if you need any other clarification.

Thanks,

Sinisa

#2638335

Please could you set the hidden input fields for admin login once again?
By mistake I put it in the text where it is visible and clicked "submit"...

#2642117

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2643203

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now: hidden link

I've added the following view's filter to "Custom Code" section offered by Toolset with the code snippet "toolset-custom-code":
=> hidden link

add_filter('wpv_filter_query', 'func_filter_by_author', 99, 3);
function func_filter_by_author($query, $view_settings,$view_id ) {

    if($view_id == 357) {
        
      $user_id = um_get_requested_user();
      $query['author__in'] = array($user_id);
       
    }
    return $query;
 }

I see with other member profile the post is not get displayed:
- hidden link

More info:
- https://toolset.com/documentation/programmer-reference/adding-custom-code/
- https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query