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.
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.
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 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?