Forum Replies Created
-
AuthorPosts
-
August 31, 2016 at 4:24 PM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3974
Anh Tran
KeymasterJust released a new version of MB Settings Page extension with fix for this. Please try it.
August 31, 2016 at 2:53 PM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3972Anh Tran
KeymasterOh, I see the problem now. I'm working on it.
Anh Tran
KeymasterHi,
Currently, we can support only drag and drop clones within its parent. Moving it into another container (another group) actually breaks the JavaScript code ๐
Anh Tran
KeymasterHi,
Assuming you have a page template file called
template-front-page.phpin your theme folder and you want to create a meta box only for that page template, then please change the code to:add_filter( 'rwmb_meta_boxes', 'prefix_include_exclude_demo' ); function prefix_include_exclude_demo( $meta_boxes ) { $meta_boxes[] = array( 'title' => 'Template - Home', 'include' => array( 'template' => array( 'template-front-home.php' ), ), 'fields' => array( array( 'name' => 'Name', 'id' => 'name', 'type' => 'text', ), ), ); return $meta_boxes; }The demo code has all possible conditions for include/exclude. You just need to remove what you don't need ๐
Anh Tran
KeymasterHi Mark,
Please add custom attributes to text or textarea field like this:
It works in my case. Can you please try again?
Anh Tran
KeymasterHi,
Do you mean including the plugin inside theme doesn't load the translation?
Anh Tran
KeymasterHi @eboss99s,
Which version of Meta Box and MB Settings Page are you using? I'm testing with the latest version of MB Settings Page and development version of Meta Box and don't see the error.
Anh Tran
KeymasterHi,
You're trying to get field value from a group, so please try this:
$hero = rwmb_meta( 'home__hero' ); if ( ! empty( $hero ) ) { $h4 = isset( $hero['rw_hometemp-hero-h4'] ) ? $hero['rw_hometemp-hero-h4'] : ''; echo $h4; }Anh Tran
KeymasterSorry for the delay support :(. I'm trying my best to support all the tickets. It sometimes takes time to fix the reported bugs.
Regarding the problem with the frontend query, it's the permalink issue as the slug is changed. To fix it, simply go to Settings > Permalink and resave (you don't need to change anything).
Please let me know if it works.
ThanksAnh Tran
KeymasterHi Cristian,
To show all attached images of the being edited post, you need to write custom code to get them and put them in the
custom_htmlfield. This field doesn't have any input and don't save anything to the database. You can use it just to show the content you want.Here is the sample code:
You might need to alter it and add more CSS ๐
Anh Tran
KeymasterI've just updated the plugin with fix for this. Please try it.
August 26, 2016 at 11:22 AM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3940Anh Tran
KeymasterI've recorded a video. It works on my case :(. Please take a look:
PS: To download the latest version on Github, please use this link:
Anh Tran
KeymasterHi,
Can you give me some more details on this? How is the data corrupted?
Anh Tran
KeymasterHi @wefit.lucas, @Flikweert,
I've just updated the Meta Box plugin on Github with a fix for removing clones. Please try it.
Thanks
AnhAnh Tran
KeymasterHi, please follow this documentation:
https://metabox.io/docs/how-to-create-nested-array-field-with-meta-box-builder/
Thanks
Anh -
AuthorPosts