IF statement in WYSIWYG-Editor

WordPress
November 07, 2019 18:15:32
10trumcl
Topics: 1
Messages: 1
Is it possible to add IF statements inside the value field of a WYSIWYG field?

My problem:
I have a few headlines inside WYSIWYG fields with their corresponding meta_keys (A, B, C, D, E, etc.) inside WYSIWYG fields right next to them. I need them as 2 column rows. If some of the meta_key fields do not have values, they should not be shown - which I did by ACTIONS and "hide if empty".

The problem is, that the content of the row is not shown but a white space instead... Look at the attached screenshot to see what I mean.

Possible solution:
Can I do something like "IF(([meta key="XY"]):Headline XY)" inside the value field of the WYSIWYG field?
By that I could put them in 1 single field where empty meta keys do not cause white spaces.

Kind regards,
Clemens
November 08, 2019 06:16:44
E2Pdf
Topics: 7
Messages: 3617
Support
Hi,

Unfortunately [if] statements doesn't supported by WordPress extension. As a solution you can try to use "Actions" and "Conditions" to change "Top" position depending on empty value. "Change" "Position Top" can accept as static values, as dynamic with -/+ depending on previously value.

We remain at your service.

We would really appreciate your feedback at WordPress.org!
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.