Skip Navigation

[Fermé] Suggestion: Conditional Tags

This support ticket is created Il y a 10 années et 5 mois. There's a good chance that you are reading advice that it now obsolete.

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.

This topic contains 9 réponses, has 5 voix.

Last updated by George Il y a 10 années et 3 mois.

Auteur
Publications
#1472

Is there any way to output some parts of the template only if there's some content in one or more custom fields? If not: would be nice option.

#1476

There's no way of doing this at the moment. We have this on our TODO list for the next release.

#1540

Thank you!

#1610

What about just adding a kind of wrapper for the output? For example, I'd like to have <p>Details</p>, but only if [types field='details'] contains some content. Something extra parameter like the separator of [wpv-post-taxonomy… would help.

#1621

We haven't decided on exactly how we're going to do this yet. It may be something like:

[types field="details" condition="not empty"]<p>Details</p>[/types]

The stuff inside the types shortcode is only output if the condition is met.

#2703

Just wanted to bump this as badly needed. Thanks.

#2706

We're just working on this now. It should be in the next release sometime next week.

#2896

has this feature been released yet? if yes, where can I find instructions? We're very interested in it as well.

#2910

This has been implemented and we're testing it at the moment. It should be available early next week. We'll have some instructions when it's released.

#3030

I would love this - I was looking for a way to do this for a LOOP and was about to ask. Let us know when it's live. Thanks.

Le sujet ‘[Fermé] Suggestion: Conditional Tags’ est fermé à de nouvelles réponses.