Skip Navigation

[Resolved] user profile in frontend

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

Problem:
I would like to add Author page or User Profile page in frontend. How can I do it?

Solution:
Solution here:
https://toolset.com/forums/topic/user-profile-in-frontend/#post-594380

Relevant Documentation:
https://codex.wordpress.org/Author_Templates
https://toolset.com/documentation/customizing-sites-using-php/functions/

This support ticket is created 6 years, 11 months 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.

Our next available supporter will start replying to tickets in about 2.76 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Author
Posts
#593766

Hello. Help me please. I create new user roles with your plugin, and I need to reflect the profiles of users of future roles on the site so that they can be viewed by site visitors. How can I do it? The very user profile I learned to tune in the frontend, make links to edit and save profile data. I read your course on the plugin:
https://toolset.com/documentation/user-guides/cred-training-course/part-8-building-forms-for-editing-user-profile/

But here's how to make these profiles visible to site visitors I can not understand (((

#593801

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

User view.png

Hi Alexander,

Thank you for contacting Toolset support. You can create a User view to display Users and their information.

To create user view, go to: Toolset >> Views >> Add new View >> Select “User” -- see attached screenshot.

After that insert/add this view in a page.

Thank you

#594169

Снова привет. Спасибо за такой быстрый ответ. Но я имел ввиду не это, а возможность показать профиль отдельного пользователя. Как делать "views" для все пользователей или по определенным ролям я разорался. Помогите, пожалуйста.

#594170

Hello again. Thank you for such a prompt reply. But I did not mean this, but the ability to show the profile of an individual user. How to make "views" for all users or for certain roles I was ruined. Help me please.

#594217

And I also need to get a link to the author's profile of a certain publication. How can i do this?
The picture in general is such that:
1) I will have users on my site whose profiles should be viewed by site visitors.
2) these users will publish different posts
3) in these posts I need to reflect the author of the post with a reference to his profile, which I will do in the first paragraph
How can I do it? I searched all over the Internet, and could not find it. I'm a beginner developer ...

#594311

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

User data.png
Archive View.png

Hello Alexander,

From your description I understand that you want to show User’s info in author/user page, like:
hidden link
hidden link

You can display Post author profile link using following shortcode:

[wpv-post-author format="link"]

It will generate link like this:
hidden link

2. Then you need to make Author archive View page as in screenshot. You can display as many fields as you want. In my case I have added three fields e.g. author name, profile picture and description. You can add more info from ‘Fields and Views’ button.

Let me know if you need any help.
Thank you

#594337

I did everything the way you said. Do I end up with a record of a specific user? I go to create the author's archive, like you have on the picture. First item: Selecting cycles. I choose "Author of archives", and I choose in it the type of post that the archive will contain. Suppose I took my arbitrary type of post, and not the standard "posts". And in the end, after I added data and entered some arbitrary user fields through the data loop master, I entered "[wpv-post-author format =" link "]" shortcode and clicked on this link to the archive, and there I'm shown all the fields several times, namely as many times as this user posted posts of this type of posts.
Yes, I received such a link "hidden link", but I need to get a link of this type that it leads to the user profile and site visitors could find it by this user. And it turns out that I can not create a profile user profile, because the data will be repeated as many times as he published the posts selected when selecting the cycles.
I apologize in advance for such a detailed and tedious message. Help me please.

#594342

I need to make a profile for users so that everyone can see it. In the front-line. As for example, you can do with the application "ultimate member"

#594380

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Alexander,

If you want to add author page and the theme hasn't the proper file for it, you should create it:
https://codex.wordpress.org/Author_Templates

Then, to display types user meta fields using PHP code on above file, use the following function and syntax:

<?php echo(types_render_usermeta( 'field-slug', array( 'arg1' => 'val1', 'arg2' => 'val2' ) )); ?>

https://toolset.com/documentation/customizing-sites-using-php/functions/

As profile page you can use either author php file, or you can also create a Custom Post type "Profile", and create a Post with a Content Template for each user.

we have another client who had the similar issue and luckily was also able to solve it, this may help in your case:
https://toolset.com/forums/topic/author-profile-page/#post-341408

Thank you

#594550

Hello. Thanks for the great help. You helped me a lot!!!!