Skip Navigation

[Resolved] trouble getting views to display user information

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

Problem:
trouble getting views to display user information

Solution:
The user has the issue with cache while displaying the user view. You can use attribute cached="off" to disable the view cache for user view.

[wpv-view name="gradstudent-view" cached="off"]

You can find the proposed solution, in this case, with the following reply:
=> https://toolset.com/forums/topic/trouble-getting-views-to-display-user-information/#post-1200359

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-view

This support ticket is created 5 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.

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 5 replies, has 2 voices.

Last updated by jonathanR-5 5 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1199574
Screen Shot 2019-02-12 at 6.44.54 PM.png

I am trying to:

I have a user field set up for a custom user group "gradstudents". These user fields include name, research interest etc. I have a list of these users that I have successfully made with a view. Each name is linked to another page with the URL gradstudent/?student=[USERNAME] which displays all the information about the student. The page draws it's information from a view which uses the following filter:

Select users with the username determined by the URL parameter "student" and with role "(any)"
eg. yoursite/page-with-this-view/?student=admin

I've included a screenshot of the set up of the view.

The issue is that when you click on a students name you should go to a page with their info. Instead all links go to just one of the students eventhough the query string says, ?student=[USERNAME].

Link to a page where the issue can be seen:
hidden link

click on each name and see that they all go to one student.

#1199772

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - Yes, I checked the problem URL and I see the issue that even you click on different user its not displaying the correct field values.

Can I have access details so I can check what's going wrong there?

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

#1200359

Minesh
Supporter

Languages: English (English )

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

Well - I've disabled the cache for the view and I can see now its working fine:

[wpv-view name="gradstudent-view" cached="off"]

I can see correct values for the fields when you click on the link on the following link:
=> hidden link

Can you please confirm.

#1200565

Yes! Thanks Minesa, that worked perfectly. I must have missed the documentation on adding the "cached" attribute.

#1200568

Minesh
Supporter

Languages: English (English )

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

Glad to know that solution I shared works for you.

Would you mind to mark resolve this ticket 🙂

#1202585

My issue is resolved now. Thank you!