Skip Navigation

[Closed] parsing shortcodes in legacy views template

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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 1 year, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#2605189

Third-party shortcodes don't seem to get parsed in my legacy Views templates although I swear this has worked for me before. For instance [soundcloud][types field='soundcloud' output='raw'][/types][/soundcloud] should output a media player and [pdf_viewer][types field='pdflink' output='raw'][/types][/pdf_viewer] should output a PDF viewer, but in both cases it looks like the raw URL string winds up like this instead:

hidden link

I had a similar problem with [embed][/embed] shortcodes which I solved with this workaround in functions.php

add_filter('wpcf_fields_slug_youtube_value_display', 'embed_youtube');
function embed_youtube($value) {
global $wp_embed;
return $wp_embed->run_shortcode('[embed]' . $value . '[/embed]');
}

but I can't figure out how to get third-party shortcodes to work.

#2605455

Hello,

It seems your custom shortcodes [soundcloud] and [pdf_viewer] do not support third-party shortcode,

How do you create those two shortcodes?
If you are using custom PHP codes to create hem, please copy/paste the PHP codes here

The topic ‘[Closed] parsing shortcodes in legacy views template’ is closed to new replies.