Custom Fields
Support Meta Box Group WYSIWYG in a cloneable group and Select2 choices list

  • Creator
  • #32511
    Joonas Heikkilä

    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?


Viewing 1 replies (of 1 total)
  • Author
  • #32514
    Long Nguyen

    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 1 replies (of 1 total)
  • You must be logged in to reply to this topic.