Passer la navigation

[Résolu] Second Conditional Block on a page doesn't display the value of custom field

This support ticket is created Il y a 4 years, 5 months. 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.

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

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par Minesh Il y a 4 years, 5 months.

Assisté par: Minesh.

Auteur
Publications
#2253541

I have a custom Content Block created in Blocksy. It's used to display Product custom fields in additional tab on Single Product.

The Content block has two Conditional blocks that display information only when the fields are not empty or have value 1.

The problem is, that for the second Condtional block I'm alway getting shortcode value, not the value of the custom field.
See here: lien caché
The condition works ok, because when the field is empty - nothing is displayed.

The conditional block configuration: lien caché
The conditional block conditon: lien caché

#2253939

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share problem URL where I can see the issue.

#2253945

Sure - here - lien caché in the tab "Informacje"

#2254077

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

The thing is that we do not have any tight integration with Blocksy premium addon you are using.

The conditional block is not rendering as it should. As a workaround, I've created a content template using "classic mode" (not using blocks) and added the conditional shortcode within it:
=> lien caché

And then added the content template to your Blocksy content block using shortcode block at bottom:
=> lien caché

I can see its displaying the content as expected: lien caché

I suggest you should not use the Toolset Blocks within the Blocksy content block as sooner or later you find it not working as expected as we do not recommend to use Toolset Blocks inside third party plugin content build area.