Problem: I would like to filter a View of posts using different filter values for different Users.
Solution: You can create a custom field for Users, and store the value in the custom field. Then you can pass that value into the View of posts as a shortcode attribute.
[wpv-view name="your-view-slug" filtervalue="[types usermeta='filtervalue' output='raw' current_user='true'][/types]"]
Relevant Documentation:
https://toolset.com/documentation/user-guides/passing-arguments-to-views/
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.
This topic is split from https://toolset.com/forums/topic/show-num-keyboard-0-9-use-bootstrap-btn-with-edit-post-ink-user-ctf-filter/
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 3 replies, has 2 voices.
Last updated by 6 years, 7 months ago.
Assisted by: Christian Cox.