Conditional Logic - WordPress nickname

By: T S | Asked: 07/23/2022
ForumsCategory: How-toConditional Logic - WordPress nickname
T S asked 2 years ago
Hi all, is it possible to use conditional logic for fields (show/hide) controlled by wordpress nickname?  (not current / author... etc which is attached directly to the entry)  Thank you for your help! - Tom
1 Answers
Chris Adams answered 2 years ago
Hi Tom, You can have a hidden field that can pull in the users nickname with the [user_meta key="nickname"] shortcode. You can then show/hide fields based on the value of that hidden field however, conditional logic for a hidden field will require a fixed value to work (e.g Show this field IF hidden field = Tom) and if each users nickname is different, i'm not sure that will work for you?
T S replied 2 years ago

Great idea this will work. Thank you!

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community