I'm using CMB2 and I have a wysiwyg field, and I want to display a formiddable form in it by shortcode, but the shortcode is not rendering, but does render in a normal page or post.

How do I enable shortcode rendering on these kind of custom fields?

  • Based on This Question Try calling the shortcode function directly and pass what you need.
    – Howdy_McGee
    Apr 15 '15 at 13:55
  • Custom fields is not meant to execute shortcodes or any code for that matter Apr 15 '15 at 14:01
  • The shortcodes library is a wp component that may be used everywhere - wordpress itself just uses it in the_content, but that doesn't mean that you may not use it somewhere else or that they "are not meant" for something else.
    – jjarolim
    Apr 15 '15 at 14:15

@see https://codex.wordpress.org/Function_Reference/do_shortcode

Searches content for shortcodes and filters shortcodes through their hooks:

echo do_shortcode(

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.