Skip Navigation

Condtion to compare current user and custom field value

This support ticket is created Il y a 1 an et 11 mois. There's a good chance that you are reading advice that it now obsolete.

This topic contains 0 réponses, has 1 voix.

Last updated by larryL Il y a 1 an et 11 mois.

Assigned support staff: Waqar.

Auteur
Publications
#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' )"]