Skip Navigation

[Resolved] Show view with post on the profile page

This support ticket is created 6 years, 1 month 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#1170786

Good day

I have created a page that shows all users, there is a link to the profile page for each user like this:
hidden link field='ID']"><div class="text">Watch profile</div>

When you click watch profile, the profile page of this specific user is visible.
I have already created views for showing user information such as a telephone number or address.

I would also like to show the posts of this user on this page.
it should only be the posts of the user that is shown on the profile page.

Is that possible?
Thank you in advance
greetings Pascal

#1171111

Dear Pascal,

As you can see there is a URL parameter "users-filter" in the URL you mentioned above, the URL parameter's value is the specific user's ID, so you can use it to achieve what you want, for example:
Create a post view:
- Query posts
- Filter by post's author is same as URL parameter "users-filter"
https://toolset.com/documentation/user-guides/filtering-views-query-by-author/#post-author-is-set-by-url-parameter
Post author is set by URL parameter

#1171690
Query filter users filter.JPG

Hello Luo Yang

I did have to search a little before I realized what I had to do.
I solved it as in the sceenshot. You helped me on the right track thank you!

Greetings Pascal

#1172166

Thanks for the confirmation, can we close this ticket?
Feel free to create new ticket if there is any new problem, thanks