How to hide custom attributes from displaying

Hello,

I’m building a website where users can post ads for free, provided they register first. The ads will be publicly visible to everyone. However, the advertiser’s contact details (email and phone number) will remain hidden.

To access these contact details, visitors will need to subscribe to a membership plan. I’ve installed the Membership plugin for this purpose.

As an admin, when I create an ad, I can see the fields for email and phone number in the ad submission form. However, if I create a regular user account without a subscription, these fields are no longer shown in the form.

How can I ensure that all users — regardless of their subscription status — are asked to enter their email and phone number when submitting an ad, even if this data is only shown to paying members?

Thank you in advance for your help.

Hi @YBattie

In the back-end of WordPress, visit Listings > Attributes.

Create the phone number and email address fields here, if you haven’t already.

Ensure ‘Allow front-end editing’ is enabled for both attributes.

To force registration and require a free membership to reveal the details, in the back-end of WordPress, visit Memberships > Plans.

In your free plan’s settings, set the email address and phone number attributes that you just created as Restrictions under the Attributes (Display) option.

I hope this helps!

Cheers,
Chris :victory_hand:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.