Shortcodes inside Grouped WYSIWYG Editor

Support MB Group Shortcodes inside Grouped WYSIWYG Editor

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3067
    MetaboxBoyMetaboxBoy
    Participant

    Hello,

    I have clonable grouped metaboxes containing WYSIWYG meta boxes. I'd like to use shortcodes inside the WYSIWYG meta boxes, however, I have been unable to get this to work.

    I realize shortcodes are meant to be used either in the_content or hardcoded outside of it, however, if it is possible to use them inside of meta boxes, I'd like to know how.

    #3069
    Anh TranAnh Tran
    Keymaster

    Hi,

    If you put a shortcode in WYSIWYG field, you need to render it automatically. Here is a thread on Github about that. Briefly, you need to use this code in the frontend:

    <?php echo do_shortcode( rwmb_meta( 'field_id' ) ); ?>

    #3079
    MetaboxBoyMetaboxBoy
    Participant

    Oh wow, it's working! You're the best, Anh. Thanks a lot for your help as well as for making such a tremendous product. 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Shortcodes inside Grouped WYSIWYG Editor’ is closed to new replies.