Skip Navigation

[Resolved] Conditional display of a check box field

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 7 replies, has 2 voices.

Last updated by sianE 1 year, 11 months ago.

Assisted by: Minesh.

Author
Posts
#2562309

Tell us what you are trying to do?

I have directory pages on my website, and have created a checkbox custom field for "hide email", "hide phone", "hide address". I have set these conditionally in the content template that if they are checked, they will be hidden. However, I want these to ALWAYS show to logged-in users, even when checked (i.e. if you choose to hide your email, it will be hidden from the public, but members will still be able to view this).

Is there any documentation that you are following?

Multiple support tickets.

Is there a similar example that we can see?

What is the link to your site?

hidden link

#2562749

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Yes - you can still display it. Can you please share to what member role you want to display that?

Maybe you can share problem URL where you want to apply it.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2562915

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thank you for sharing admin access details but unfortunately when I try to access the wp-admin it shows me white page with the error message "This site can’t be reached".

I checked with one of my collogue as well and for him as well he could not able to access the wp-admin.

Can you please make sure we can access the site.

#2562927

Yes, unfortunately my website is currently down and I will have to let you know when it is back up again.

#2562933

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok fine - please get in touch when the site is up.

#2566789

Hi the website is back up now

#2566799

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

What if you try to adjust the condition for your conditional statement for Email as given under:

  (  NOT ( empty( '[wpv-current-user info="role"]') )  AND ( $(member-email-display) eq '1' ) ) 

I hope this should work.

#2566803

My issue is resolved now. Thank you!