Skip Navigation

[Resolved] View must be saved if shortcode changed

This support ticket is created 3 years, 2 months ago. 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 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 3 years, 2 months ago.

Assisted by: Waqar.

Author
Posts
#2252565

Dear Sir/Madam,

I have a View including custom shortcode, after I modify the shortcode, is it must to save the View again to take effective? How can I know which View use the custom shortcode?

Best regards,

Kelvin.

#2253315

Hi Kelvin,

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

If you've set the view to use views cache then, yes, you'll have to save the view again or clear that view's cache for the change in the shortcode's output to take effect, on the front-end.

To disable the view's cache, you can disable the option "Cache View" in the "View" block settings, if you've added the view using this block.

If you've added the view using the view's shortcode, then you can include the attribute cached="off", so that the view's cache is not used and always up-to-date output is used:
( ref: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/ )


[wpv-view name="view-1" cached="off"]

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar