Forum Replies Created
-
AuthorPosts
-
August 21, 2022 at 11:32 PM in reply to: ✅Error while inserting $field_id in rwmb_after_save_post #37955
Long Nguyen
ModeratorHi Ben,
Can you please share the code that creates the group field and subfields on your site?
pieces_jointes_et_datesanddate_fichierYou can also refer to this topic to know how to get group field and update subfield value in a group
https://support.metabox.io/topic/update_post_meta-for-cloneable-group-fields/#post-36899August 21, 2022 at 11:24 PM in reply to: How to export repeated field group into multiple rows #37954Long Nguyen
ModeratorHi,
I'm not sure if there is a plugin that is compatible with the cloneable field to export field values to multiple rows like that. You can try to use the export feature of WordPress by going to the admin area > Tools > Export.
Or contact WP All Export support to ask for help with this case.Long Nguyen
ModeratorHi Mark,
1. There are two positions: Advanced Location Rules and Conditional Logic which have empty values. If you do not use that features, please just remove them.
2. The custom table name should be in lowercase and separate words by underscores like the field ID.
I've fixed those issues then the field group display on the editing Single Trail page and save field values to the custom table as well. Screenshot https://monosnap.com/file/yuYunyaJLo4Hdge6u9LVztEUGRnRSm
Long Nguyen
ModeratorHi,
Thanks for your feedback.
I've escalated this issue to the development team to fix it in the next update.
Long Nguyen
ModeratorHi,
You can check Meta Box is activated before using the hook to register the custom columns.
if ( function_exists( 'rwmb_meta' ) ) { add_action( 'admin_init', 'prefix_add_custom_columns', 20 ); }For other extensions, if you are using the plugin Meta Box AIO, it is so hard to check if it is available.
Long Nguyen
ModeratorHi Yasmine,
Can you please share a part of the code of a group field with the link subfield? I will check it on my end.
Long Nguyen
ModeratorHi Richard,
Gravity Form can work with custom fields created by Meta Box as other regular fields of WordPress. But the field must have a value in the database to let GF look up in the column
meta_keyandmeta_value(table wp_postmeta).August 19, 2022 at 10:54 AM in reply to: Outputting a different user meta photo from field group #37577Long Nguyen
ModeratorHi,
1. The extension MB Frontend Submission support creating a post on the frontend. So the second line in your code is not correct to get the post meta
$user = get_usermeta( 'academic_user_coauthor', get_queried_object_id() );You need to use the function get_post_meta() instead of get_usermeta() (it is also deprecated).
2. If the field
academic_user_coauthoris a subfield in a group, you need to get the group value first and get the subfield value with the returned array. Please read more on this documentation https://docs.metabox.io/extensions/meta-box-group/#sub-field-valuesLong Nguyen
ModeratorHi John,
You should create a query to get posts in the callback function that register the meta box, like this
function ndig_get_accepted_offer_admin(){ $post_id = null; if ( isset( $_GET['post'] ) ) { $post_id = intval( $_GET['post'] ); } elseif ( isset( $_POST['post_ID'] ) ) { $post_id = intval( $_POST['post_ID'] ); } $connected = new WP_Query( [ 'relationship' => [ 'id' => 'listing-to-offer-relationship', 'from' => $post_id, // You can pass object ID or full object ], 'nopaging' => true, ] ); $results = ''; while ( $connected->have_posts() ) : $connected->the_post(); $results .= '<a href="'.the_permalink().'">'.the_title().'</a>'; endwhile; $meta_boxes[] = [ ... 'fields' => [ [ 'type' => 'custom_html', 'std' => $results, ], ] ]; return $meta_boxes; }Long Nguyen
ModeratorHi,
Sorting (drag and drop) a normal field in a meta box is not supported. You can sort the cloneable fields or meta box itself. Read more on the documentation https://docs.metabox.io/cloning-fields/
Long Nguyen
ModeratorHi Mark,
Can you please deactivate the feature Two-factor Authentication when login to the admin area?
Long Nguyen
ModeratorOk, let me know if you have any questions.
Long Nguyen
ModeratorHi Jochen,
Meta Box and MB Admin Columns do not support a field file size and display in the Media table list like that. Please use the snippet code, I will inform the development team to consider adding this feature to the plugin in future updates.
Long Nguyen
ModeratorHi,
Please follow this documentation to check if the Meta Box plugin is activated https://docs.metabox.io/functions/rwmb-meta/#faq
Long Nguyen
ModeratorHi,
Meta Box does not support a field type
honeypotin both backend and frontend. You can refer to this topic to create a honeypot field https://support.metabox.io/topic/honeypot-field/ -
AuthorPosts