Navigation überspringen

[Gelöst] straight codes in a view shortcode get converted to curly quotes and view breaks

This support ticket is created vor 2 years, 1 month. 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zeitzone des Unterstützers: Asia/Karachi (GMT+05:00)

Dieses Thema enthält 1 reply, hat 2 Stimmen.

Zuletzt aktualisiert von Waqar vor 2 years.

Assistiert von: Waqar.

Author
Artikel
#2696803
image001.png
image002 (1).png

Tell us what you are trying to do?
On this page you'll see a section called Holiday Offers
versteckter Link

It draws in a CPT Offers using a shortcode.

Whenever the page is edited and published, the shortcode breaks because the straight quote marks get saved as curly quotes, and we need to go back in and edit the code repeatedly changing the quotes back to straight ones.

Is there a fix that you know of? Is there a shortcode of yours that doesn't require the use of quotes?

Thanks

#2697003
screenshot-visual-text.png

Hi,

Thank you for contacting us and I'd be happy to assist.

A character conversion like this can happen if the 'Visual' tab and not the 'Text' tab of the classic editor is selected for editing.
( example screenshot attached )

Also, the view's shortcode should still work if no quotes are used:


[wpv-view name=view-name]

regards,
Waqar

#2697026

Thank you Waqar

If I do not use any quotes the shortcode works perfectly.