Forum Replies Created
-
AuthorPosts
-
December 15, 2016 at 8:39 PM in reply to: First WYSIWYG in group not switching between Visual and Text tabs. #4680
Anh Tran
KeymasterDon’t use "content" as the wysiwyg field ID as it’s used for the main post content. That breaks the JS code for the field. Please try changing it to something else.
Anh Tran
KeymasterWhich field type do you use? If you use
image_advancedfield, then Meta Box only stores the attachment ID, not the URL.Anh Tran
KeymasterThat seems the way WP stores attachment. I mean the way your old plugin stores images.
The
callbackyou mentioned in another topic is used to **display** the images only. It doesn't help add/remove more images in the custom fields.Anh Tran
KeymasterHi Martin,
That depends on how you store the images in the post meta. With Meta Box, image IDs are saved in the post meta (each image ID is saved a meta key). You can read more about that here.
If the old plugin saves image IDs in the post meta in the same way as Meta Box, then Meta Box can show them without problem.
But if it saves image URLs in the post meta, then you might want to use the field
file_inputinstead (withcloneparameter enabled if you have multiple images).And in the worst case, you can write a script to migrate the old data to the new format compatible with Meta Box.
Anh Tran
KeymasterUnfortunately it's not possible with the plugin.
Anh Tran
KeymasterHi, can you explain what "array of results" is? Do you mean the meta values saved in the database?
December 9, 2016 at 12:14 AM in reply to: How to Display Metaboxes According to the Current Post Format #4652Anh Tran
KeymasterCan you please post your code here?
December 8, 2016 at 2:35 AM in reply to: How to Display Metaboxes According to the Current Post Format #4650Anh Tran
KeymasterDear ismail,
There're 3 extensions for you to do that, for easiest option, try MB Conditional Logic. The documentation here:
https://metabox.io/docs/meta-box-conditional-logic/
In the documentation example, I've included example how to display meta box based on post format. You can try:
'visible' => ['post_format', 'aside']Anh Tran
KeymasterI think the problem is 2 wysiwyg fields have the same ID. You need to change them to have different IDs.
Anh Tran
KeymasterI see you’re using Advanced TinyMCE plugin. Can you try deactivating it and checking again?
Anh Tran
KeymasterThanks for your report. Yes, the JavaScript code to clone fields works heavily based on jQuery-DOM manipulating. So, it’s a little slow for large meta box or for a field with lots of clones. I will take a note and improve it.
Anh Tran
KeymasterMaybe just use
get_post_types()?Anh Tran
KeymasterCool, my fault also 🙂
Anh Tran
KeymasterDear alaric,
Thanks for purchasing Builder, yes, you'll need to purchase Group in order to make it works.
Best regards,
Tan
Anh Tran
KeymasterPlease update to the latest version of Meta Box. We fully support WPML in version 4.9.
-
AuthorPosts