WYSIWYG in a cloneable group and Select2 choices list

Support MB Group WYSIWYG in a cloneable group and Select2 choices list

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32511
    Joonas HeikkiläJoonas Heikkilä
    Participant

    Hello, I got two Meta Box questions for you:

    1) Is there a way to use a WYSIWYG field as a sub-field of a cloneable group? I can't get automatic paragraphing to work. It works on upper level fields.

    2) Using select2 (Select Advanced) field, js_options tags: true adds the ability to input new choices and it also saves it to the database. Is there a way (callback function?) to fetch that newly added choice to the choices list so that when I update the post again all the added choices are kept instead of being dropped?

    Thanks!

    #32514
    Long NguyenLong Nguyen
    Moderator

    Hi Joonas,

    Let me answer your questions.

    1. You can try to use the function wpautop() to replace the line breaks with the paragraph tags to resolve this issue. Like this
    2. $group = rwmb_meta( 'group' );
      echo wpautop( $group['wysiwyg'] );
    3. Currently, Meta Box does not support saving the new tags (free text) to the database and updating that option to the choice list. I will inform the development team to consider adding it to the to-do list for the future development of the plugin.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.