Scandics breaks the plugin.
-
Hi.
I’m building a custom gallery with this awesome plugin and it works fine except for pulling scandics (??, ??) from my caption field.
You can see the problem here: https://i.imgur.com/Fm5oE.png
Also if I try to include character ?? in the caption field, it clears the whole caption on article update.
Anything I can do?
Thanks.
Edit: for clarity, I’m using the most recent version of WP as well as the plugin.
_________________________________________________I have this in my functions.php (Note that those “Liit?” etc are working fine)
define( 'ATTACHMENTS_DEFAULT_INSTANCE', false ); function gallery_attachments( $attachments ) { $args = array( 'Galleria' => 'My Attachments', 'post_type' => ('post'), 'filetype' => ('image'), 'note' => 'Liit? gallerian kuvat t?h?n!', 'button_text' => __('Liit?', 'attachments'), 'modal_text' => __('Liit?', 'attachments'), // fields for this instance (array) 'fields' => array( array( 'name' => 'caption', // unique field name 'type' => 'text', // registered field type (field available in 3.0: text) 'label' => __( 'Kuvateksti', 'attachments' ), // label to display ), ), ); $attachments->register( 'gallery_attachments', $args ); // unique instance name } add_action( 'attachments_register', 'gallery_attachments' );
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Scandics breaks the plugin.’ is closed to new replies.