Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi, I haven’t received your email. Can you please send again?
Anh Tran
KeymasterThank you @Jackky for your help! That's correct.
@David: Please take a look at media translation guide from WPML. Make sure you enable this feature. It allows using the same media files in content in different languages.
Anh Tran
KeymasterIf you want to run Meta Box only in the backend, you can wrap the code to register meta box within
if ( is_admin() ), like this:if ( is_admin() ) { add_filter( 'rwmb_meta_boxes', 'your_function' ); }Please note that this code will break helper functions to get meta values in the frontend. So please use with care.
Anh Tran
KeymasterOK, please send to my email [email protected]. Thanks.
Anh Tran
KeymasterDear Internative,
I've double checked the plugin and see that it works properly. Here is my code from the group example:
add_filter( 'rwmb_meta_boxes', 'meta_box_group_demo_register' ); function meta_box_group_demo_register( $meta_boxes ) { $meta_boxes[] = array( 'title' => __( 'Album Tracks' ), 'fields' => array( array( 'id' => 'standard', // Group field 'type' => 'group', // Clone whole group? 'clone' => true, // Drag and drop clones to reorder them? 'sort_clone' => true, // Sub-fields 'fields' => array( array( 'name' => __( 'Genre', 'rwmb' ), 'id' => 'genre', 'type' => 'select_advanced', 'options' => array( 'pop' => __( 'Pop', 'rwmb' ), 'rock' => __( 'Rock', 'rwmb' ), ), ), array( 'name' => __( 'Track name', 'rwmb' ), 'id' => 'text', 'type' => 'text', 'visible' => ['genre', '!=', ''] ), array( 'name' => __( 'Release Date', 'rwmb' ), 'id' => 'date', 'type' => 'date', 'visible' => ['genre', '!=', ''] ), ), ), ), ); return $meta_boxes; }Can you please paste your code here so I can check?
Anh Tran
KeymasterPlease try clear browser cache. We have updated some JavaScript files, which requires clearing browser cache to work.
Anh Tran
KeymasterHi again,
This bug is fixed. Please update **both** Meta Box and Group.
Anh Tran
KeymasterHi,
The Builder extension actually has nothing with the Frontend Submission extension. Because the Frontend Submission uses a shortcode to display the form. And the fields "Post Title" and "Post Featured Image" are set in the shortcode. They're not part of the meta box, so Builder can't help.
Anh Tran
KeymasterI think we can leave that for users to choose the values. Although it sounds OK for selects, it seems to be unusual for other field types.
Anh Tran
KeymasterWe're having a problem when cloning a group, which has a cloned wysiwyg field. The generated ID for the wysiwyg must be unique. We're trying our best to fix it this week. We'll keep you posted.
Anh Tran
KeymasterIf you're in a loop and called the function
$query->the_post(), then you don't need to pass any variable. The current post ID (retrieved viaget_the_ID()) is passed by default.If that doesn't work, please post the code you use in the loop.
Anh Tran
KeymasterYou need to pass the
$post_idas the last parameter in therwmb_metafunction. Please read this docs for details.Anh Tran
KeymasterYes, please. It helps tracking easier.
Anh Tran
KeymasterHi @i.ugarov, we're fixing it. Will be done soon 🙂
Anh Tran
KeymasterSorry, I've updated the file, please update.
-
AuthorPosts