Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 361 through 375 (of 4,839 total)
  • Author
    Posts
  • in reply to: Error while inserting $field_id in rwmb_after_save_post #37955
    Long NguyenLong Nguyen
    Moderator

    Hi Ben,

    Can you please share the code that creates the group field and subfields on your site?
    pieces_jointes_et_dates and date_fichier

    You 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-36899

    in reply to: How to export repeated field group into multiple rows #37954
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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.

    in reply to: problem after creating post #37948
    Long NguyenLong Nguyen
    Moderator

    Hi 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

    in reply to: Elementor group warning #37947
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thanks for your feedback.

    I've escalated this issue to the development team to fix it in the next update.

    in reply to: Check if MB plugin and extension is active #37580
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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.

    in reply to: Link is an array #37579
    Long NguyenLong Nguyen
    Moderator

    Hi 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.

    in reply to: Gravity Forms and metabox #37578
    Long NguyenLong Nguyen
    Moderator

    Hi 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_key and meta_value (table wp_postmeta).

    in reply to: Outputting a different user meta photo from field group #37577
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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_coauthor is 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-values

    in reply to: How to get related posts in admin area? #37576
    Long NguyenLong Nguyen
    Moderator

    Hi 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;
    }
    in reply to: Drag and Drop CPT Data #37571
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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/

    in reply to: problem after creating post #37569
    Long NguyenLong Nguyen
    Moderator

    Hi Mark,

    Can you please deactivate the feature Two-factor Authentication when login to the admin area?

    in reply to: 12-Column Grid & Builder #37562
    Long NguyenLong Nguyen
    Moderator

    Ok, let me know if you have any questions.

    in reply to: Media file size column #37560
    Long NguyenLong Nguyen
    Moderator

    Hi 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.

    in reply to: Check if MB plugin and extension is active #37559
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Please follow this documentation to check if the Meta Box plugin is activated https://docs.metabox.io/functions/rwmb-meta/#faq

    in reply to: Backend SPAM entry #37558
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Meta Box does not support a field type honeypot in both backend and frontend. You can refer to this topic to create a honeypot field https://support.metabox.io/topic/honeypot-field/

Viewing 15 posts - 361 through 375 (of 4,839 total)