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 2 years 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 Staff answered 2 years 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 2 years ago

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

Rob LeVineRob LeVine Staff replied 2 years 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