Custom Fields
Re-Envisioned
Support General Shortcode in function not working for me after 4.17.0 update Reply To: Shortcode in function not working for me after 4.17.0 update

#14012

Brian
Participant

Hi Anh,
Thanks for the reply. It’s still is not working for me on my end. I’ll try to explain better.

It seems that the shortcodes are getting stripped out. When I change do_shortcode('[rwmb_meta id="tour_duration"]') to esc_html( $duration ) then my values display correctly again. See screenshot: https://cl.ly/2d608aa78e1b

Why would that be the case?

The shortcodes work fine on their own when adding directly to the tour page. But my hook is displaying these values in a grid display ( a custom visual composer post type grid module).

Is there something I need to adjust so that the shortcodes don’t get stripped out?

Thanks in advance!