0

How to make CMB2 box compatible with qTranslate-x?

I have simple text field created with CMB2 (https://pl.wordpress.org/plugins/cmb2/).

$cmb_demo->add_field( array(
  'name' => __( 'Text', $this->plugin_slug ),
  'desc' => __( 'field description (optional)', $this->plugin_slug ),
  'id' => $prefix . $this->plugin_slug . '_text',
  'type' => 'text'
) );

How can I make its content available for qTranslate-x plugin (https://wordpress.org/plugins/qtranslate-x/).

yivi
  • 42,438
  • 18
  • 116
  • 138
jmarceli
  • 19,102
  • 6
  • 69
  • 67

1 Answers1

1

It seems that there wasn't any Wordpress plugin which will provide such integration, so I created new project. It could be found on Github https://github.com/jmarceli/integration-cmb2-qtranslate as well as on Wordpress.org https://wordpress.org/plugins/integration-cmb2-qtranslate/.

jmarceli
  • 19,102
  • 6
  • 69
  • 67
  • I am having an issue with the wysiwyg field in that after saving it doesn't show the right text in the editor window after switching tabs. - the value is incorrect on the element. – weaveoftheride Apr 11 '16 at 10:48
  • 1
    @AndrewWelch Check my solution to this on the [github](https://github.com/WebDevStudios/CMB2/issues/519). It works on wysiwyg – janw Apr 21 '16 at 14:26
  • I've just fixed wysiwyg support in my module. Please check if it is working now for you. – jmarceli Apr 21 '16 at 21:17