Navigation überspringen

[Gelöst] The Code was changed after saving and reopen it

This support ticket is created vor 5 Jahren, 5 Monaten. 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
- 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)

Dieses Thema enthält 9 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von webcrow vor 5 Jahren, 5 Monaten.

Assistiert von: Shane.

Author
Artikel
#1347387
Elementor   time price.png

Hello, I insert this in Elementor or DIvi (WYSIWYG-Edior in Textmode)

--------code-------------
<table id="" class="timetable">
<tr class="">
[wpv-conditional if="( $(wpcf-timeframe-01) != '' )" ]<td class="column-1">[types field='timeframe-01'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-02) != '' )" ]<td class="column-1">[types field='timeframe-02'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-03) != '' )" ]<td class="column-1">[types field='timeframe-03'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-04) != '' )" ]<td class="column-1">[types field='timeframe-04'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-05) != '' )" ]<td class="column-1">[types field='timeframe-05'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-06) != '' )" ]<td class="column-1">[types field='timeframe-06'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-07) != '' )" ]<td class="column-1">[types field='timeframe-07'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-08) != '' )" ]<td class="column-1">[types field='timeframe-08'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-09) != '' )" ]<td class="column-1">[types field='timeframe-09'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-10) != '' )" ]<td class="column-1">[types field='timeframe-10'][/types]</td>[/wpv-conditional]
</tr>

<tr class="">
[wpv-conditional if="( $(wpcf-price-01) != '' )" ]<td class="column-2">[types field='price-01'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-02) != '' )" ]<td class="column-2">[types field='price-02'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-03) != '' )" ]<td class="column-2">[types field='price-03'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-04) != '' )" ]<td class="column-2">[types field='price-04'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-05) != '' )" ]<td class="column-2">[types field='price-05'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-06) != '' )" ]<td class="column-2">[types field='price-06'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-07) != '' )" ]<td class="column-2">[types field='price-07'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-08) != '' )" ]<td class="column-2">[types field='price-08'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-09) != '' )" ]<td class="column-2">[types field='price-09'][/types]</td>[/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-10) != '' )" ]<td class="column-2">[types field='price-10'][/types]</td>[/wpv-conditional]
</tr>
</table>
------------end----------------
and after save and reopen I got this

-----------------code---------------
[wpv-conditional if="( $(wpcf-timeframe-01) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-02) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-03) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-04) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-05) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-06) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-07) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-08) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-09) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-timeframe-10) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-01) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-02) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-03) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-04) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-05) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-06) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-07) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-08) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-09) != '' )" ][/wpv-conditional]
[wpv-conditional if="( $(wpcf-price-10) != '' )" ][/wpv-conditional]

[types field='timeframe-01'][/types] [types field='timeframe-02'][/types] [types field='timeframe-03'][/types] [types field='timeframe-04'][/types] [types field='timeframe-05'][/types] [types field='timeframe-06'][/types] [types field='timeframe-07'][/types] [types field='timeframe-08'][/types] [types field='timeframe-09'][/types] [types field='timeframe-10'][/types]
[types field='price-01'][/types] [types field='price-02'][/types] [types field='price-03'][/types] [types field='price-04'][/types] [types field='price-05'][/types] [types field='price-06'][/types] [types field='price-07'][/types] [types field='price-08'][/types] [types field='price-09'][/types] [types field='price-10'][/types]

---------------------end--------------

What do I worng?

Thanks for helping.

#1347481

Shane
Supporter

Sprachen: Englisch (English )

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

Hello,

Thank you for getting in touch.

I believe this is one for the elementor support team as our shortcodes are still there.

I would recommend getting in touch with the elementor support team and advising them of this issue.

Perhaps they may have a solution.

Thanks,
Shane

#1347517

Hello Shane,

I tried the Toolset Support first because the error is the same on tool Elementor and the Divi editor. I used Divi and Elementor on different domains [Not together] and got the same error on both Editors.

Thanks Mario

#1347609

Shane
Supporter

Sprachen: Englisch (English )

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

Hi Mario,

Their editors seems to be stripping out the html.

If you add this to a standard wordpress editor, does the issue still remain ?

Please let me know.

Thanks,
Shane

#1347751

Hi Shane,

it seems to be the same! Here comes a small video versteckter Link
I hope it helps.

Thanks
Mario

#1348277

Shane
Supporter

Sprachen: Englisch (English )

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

Hi Mario,

From your video it seems that the code is generating fine.

However i would like to try it out for myself.

Would you mind allowing me to have admin access to the site to have a look ?

Thanks,
Shane

#1348501

Shane
Supporter

Sprachen: Englisch (English )

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

Hi Mario,

I see the issue now.

The conditionals are break the html structure of a table.

What you can do is to add the conditionals within the table columns instead of wrapping it.

Thanks,
Shane

#1348607

Hi Shane,

the goal is that only if data in the toolsetfield we get a TD, your solutions generate a TD without data. In this case we don't need the conditionals. I'm right?

Thanks
Mario

#1349267

Shane
Supporter

Sprachen: Englisch (English )

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

Hi Mario,

So you will need to workaround this challenge by using a view.
versteckter Link

With the view you can get your desired output but in order for the view to display the content for the current post you will need to add a filter for the post ID and set it to get the ID by the shortcode attribute.

Then you can call the view like this .
[wpv-view name="test" ids='[wpv-post-id]']

You can add this to your elementor template and it should start displaying your content fine.

Thanks,
Shane

#1350327

My issue is resolved now. Thank you! I hope that ones come a release that not need the workaround.