Skip Navigation

[Resolved] How to delete field content

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Shane 7 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#476982

Wim

For a real estate website, all the houses have a number of fields, like a price field.

When I indicate a property as sold, a new class "sold" is added to the description container.
Using this class, the price field and some others are hidden with css: display:none.

But smart viewers can still track them down using "inspect element" or "view source".
How can they be removed in the backend - css and jquery only do their tricks in the frontend.
Thanks.

#477127

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

What you can do is to add a 'sold' checkbox to the custom post type and then edit the post when it is sold so it has a sold status.

Then add a filter to your view and let the view filter out the sold items.

Or do you just want to remove the price completely ? In this case you can use a conditional code to check if the product has been sold and let it not display price.

Thanks,
Shane

#477129

Wim

Thanks for the reply. The checkbox was already there.
Each page does two loops: a first grid with the items for sale and then a second grid with the sold items. How do I do this conditional code?

#477132

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

To use the conditionals please have a look at the link below.
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/checking-types-fields-and-custom-fields/

Thanks,
Shane

The forum ‘Types Community Support’ is closed to new topics and replies.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.