Skip Navigation

[Resolved] Create a user page in front end

This thread is resolved. Here is a description of the problem and solution.

Problem:
Create a user page in front end

Solution:
With looping through users using the user view you should try to use the following code:

You can create the specifilc link to user profilelike as given under:

<a href="urltocontentprofilepage/?users-filter=[wpv-user field='ID']">[wpv-us

You can find the proposed solution, in this case, with the following reply:
=> https://toolset.com/forums/topic/create-a-user-page-in-front-end/#post-1237514

Relevant Documentation:
https://toolset.com/documentation/customizing-sites-using-php/creating-custom-user-profiles/

This support ticket is created 5 years ago. There's a good chance that you are reading advice that it now obsolete.

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)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Pat 5 years ago.

Assisted by: Minesh.

Author
Posts
#1236991

Pat

Hello,

I'm working on a site that have lots of users and I want to provide my client the ability to manage users in the front end (inside a page that is managed by Access).

So, I have first created a list of users with some basic info. No issue there.
Then, I was thinking adding a button in this list in order to be able to reach the user page (the page here we can see all the user info).

And this is where it comes to be "tricky". When we manage postypes with Toolset, it's easy to create a page for this particular postype (a Views content), but for users, I did not find something that can be used.

So I need some advice how to organize this (can I have a url like this to reach the user page :
hidden link or do I need to arrange things differently?

Regards
Pat

#1237074

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - here is the Doc using which you can create custom user profile:
=> https://toolset.com/documentation/customizing-sites-using-php/creating-custom-user-profiles/

More info:
https://codex.wordpress.org/Author_Templates#Which_Template_File_is_Used.3F

Or another way is to list all users with user ID filter and you should create a user view and set that view to filter by user ID URL param and display the output.

For example:
=> https://toolset.com/forums/topic/link-to-and-show-a-specific-user-profile-page/#post-499398

#1237160

Pat

Hi Minesh,

Thanks for your answer.
I'm OK with creating the list of users. Then, I need to place a button on each user line in order to be able to access to his profile.
So, my first question is : what is the url I need to place in this button and how to define the dynamic parameter (ie : the user we want to display) ?

Last, when arriving to this specific page, I need to display all needed info including user custom fields. Do I need to use another user Views for that or can I manage it thanks to a specific user content template

Regards
Pat

#1237514

Minesh
Supporter

Languages: English (English )

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

Well - if you should create a page where you should a view that lists all users with link to specific user profile page.

For example - You can create the specifilc link to user profilelike as given under:

<a href="urltocontentprofilepage/?users-filter=[wpv-user field='ID']">[wpv-user field="user_firstname"]</a>

If you do not know how to do it, please share access details and I'm happy to help you further.

#1237519

Pat

Hi Minesh,

I'm OK with the Views that list users and place this link inside.
Now, the issue for me is the next step :
1. Is there a specific page that should be used for "urltocontentprofilepage" or can I use any page I want
2. What do I have to place inside this page (a content template, an archive template or a Views)?

Regards
Pat

#1237532

Minesh
Supporter

Languages: English (English )

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

1. Is there a specific page that should be used for "urltocontentprofilepage" or can I use any page I want
=> Yes, its up to you. You should create a specific page and create a view filter by URL param with user ID and pass the user ID as URL param and add the user custom fields etc..etc.. within the view's loop editor.

#1238161

Pat

Hi Minesh,

Many thanks, that's fine.
Regards
Pat

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.