Display view field value only for logged in users

By: Greg Berthelot | Asked: 07/18/2023
ForumsCategory: Code HelpDisplay view field value only for logged in users
Greg Berthelot asked 1 year ago

Hi, Is there a way to display view field value only for logged in users? eg [if logged-in-user]show[/if] Any help would be appreciated Greg

1 Answers
Rob LeVineRob LeVine answered 1 year ago
One solution I've used in the past is to wrap what you want to show/hide in a frm-condition and use its custom shortcode option. In your shortcode you can do whatever comparisons you want.
Greg Berthelot replied 1 year ago

Thanks. The issue with this is it only works on detail page and not on listing page 🙁

Rob LeVineRob LeVine replied 1 year ago

That doesn't make sense to me, so you'll have to elaborate on what's not working and also post the code you're using in the view.

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
crossarrow-right