Skip Navigation

[Resolved] Filter view based on current user meta

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 1 reply, has 1 voice.

Last updated by jamesR-13 1 year, 9 months ago.

Author
Posts
#2555869

Tell us what you are trying to do?
I want to filter a view according to a custom user meta field value.

Is there any documentation that you are following?
https://toolset.com/forums/topic/filter-view-comparing-post-meta-and-user-meta/

I have a user meta field called Location, and a post custom field called Admin Location. I would like to filter the view such that users only see posts with Admin Location matching their Location.

I have added a filter on the Admin Location field using CONSTANT with the value of the shortcode: [types usermeta=location user_current=true][/types]

But the view now shows no entries found, even though there are numerous posts that would match the current user meta.

I'm sure this is something I'm doing wrong or just missing. Please advise. Thank you.

#2555943

My issue is resolved now. Thank you!