Skip Navigation

[Resolved] Condtion to compare current user and custom field value

This support ticket is created 3 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.
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/Karachi (GMT+05:00)

This topic contains 0 replies, has 1 voice.

Last updated by larryL 3 years, 7 months ago.

Assisted by: Waqar.

Author
Posts
#1803973

If I wanted to create a view that only displays the content to the logged in user BUT it looks up the user id from the a custom field and matches it how would I setup the condition? I tried

[wpv-conditional if="( '[wpcf-user-id]' eq 'wpv-current-user' )"]

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.