Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 3,826 through 3,840 (of 4,839 total)
  • Author
    Posts
  • in reply to: Is it possible to create a site like imdb using a plugin? #24250
    Long NguyenLong Nguyen
    Moderator

    Hi Kabus,

    Thank you for using Meta Box!

    Meta Box is a simple yet powerful plugin that helps developers build custom meta boxes and custom fields in WordPress fast and easily. It supports creating custom post types, settings page, user meta, blocks ... with many field types.

    If this is the first time you are using Meta Box, please follow our documentation to know how it works https://docs.metabox.io/.

    in reply to: Can I use Meta Box and ACF on the same site? #24248
    Long NguyenLong Nguyen
    Moderator

    Hi,

    I've not tested all options/features of ACF before but simply, we can activate ACF and Meta Box without any errors. So I think you can use both plugins.

    For further moving from ACF to Meta Box, you can refer to this topic https://support.metabox.io/topic/convert-acf-fields-to-metabox/.

    in reply to: After Save Hook? #24247
    Long NguyenLong Nguyen
    Moderator

    Hi,

    There are two ways to fire an action after saving the settings page.

    • Use the action rwmb_{$meta_box_id}_after_save_post with the latest meta box register on the settings page. After saving the value of this meta box, the custom action will be fired.
    • Still use the action mb_settings_page_load but we need to check if the $_POST variable has value.

    add_action( 'mb_settings_page_load', function ( $args ) {
        if( !empty( $_POST['submit'] ) ) {
            // do your stuff
        }
    }, 20 );
    

    Hope that helps.

    in reply to: Remove sanitize from render_template #24239
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thank you for your reporting!

    Can you please share full the code to create the block, template, and steps to happen the issue? I will try to reproduce the issue on my end. Some screenshots are very appreciated.

    in reply to: Can't find the metabox settings page for custom code #24238
    Long NguyenLong Nguyen
    Moderator

    Hi Floris,

    Thank you for using our plugin!

    As I can see Anh Tran has replied to this question on the Facebook Meta Box Users group. Let me know if it helped.
    https://www.facebook.com/groups/metaboxusers/permalink/779311819353131/

    Long NguyenLong Nguyen
    Moderator

    Hi Kati,

    Thank you for using our plugin!

    The extension Meta Box - Elementor Integrator also helps you to show the meta value of the user who created the post. You can select the field Author Meta when getting the dynamic value, screenshot https://share.getcloudapp.com/2NuEK2PO.

    A short screen record demonstrates how it works: https://share.getcloudapp.com/RBu41PL6

    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thank you for your idea.

    If you want to add the description for the user meta, please use that action to add the desc. Just like:

    add_action( 'rwmb_before_{$metabox_id}', function() {
        echo '<p>Descrition for User Meta</p>';
    }, 20 );

    And remove the Meta box title, you can use this trick: leave the meta box title with some spaces 🙂

    in reply to: first item from array #24231
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Follow your previous topic: https://support.metabox.io/topic/get-advanced-images-from-array/

    /**
     * return an array of image IDs 
    [0] => 234
    [1] => 456
    [2] => 831
    [3] => 1112
     */
    $disli = $dislider['gallimage'];

    To get the first image from the field image_advanced value, please follow this code:

    $image = RWMB_Image_Field::file_info( $disli[0], ['size' => 'large'] );
    echo '<a href="' . $image['url'] . '" data-lightbox="'.$dislider['gallname'].'"></a>';
    in reply to: Bugs on new update #24217
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thank you for your reporting.

    I will check these issues and add them to the to-do list of the development. It will be fixed in the next update as soon as possible.

    in reply to: Undefined index: id #24216
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thank you for your reporting.

    We've aware of this issue and fixed it in a new commit, it will be included in the next release.

    in reply to: Conditional Logic seems broken since update #24214
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Do you mean after updating Meta Box AIO v1.13.0 then the conditional logic is broken? Can you please follow the step Debugging Information and let me know what's going on?
    https://support.metabox.io/topic/how-to-create-a-new-topic/

    You can also share the code to create the conditional logic, I will test it on my demo site.

    in reply to: Get Custom Field in functions.php #24207
    Long NguyenLong Nguyen
    Moderator

    Hi,

    If you do not use the function in the loop, just add a parameter to the function like the helper function.

    function query_crm_usados_interna( $post_id ){
     $meta = rwmb_meta( 'if_usados_usad_id', '', $post_id )
     return $meta;
    }

    then pass the post ID when calling the function

    
    echo query_crm_usados_interna( 1234 );
    in reply to: WP All Import/Export Add-on #24199
    Long NguyenLong Nguyen
    Moderator

    Hi friends,

    The developer team is working hard to create an integration plugin for WP All Import but their APIs is not enough to do that so the integration will be paused for a time to wait for the WPAI to add more useful APIs in their source code.

    I will inform you if there is any information.

    in reply to: MB Block Not Saving Data #24198
    Long NguyenLong Nguyen
    Moderator

    Hi Jacob,

    Thank you for reaching out.

    Not yet, this feature is the core of MB Blocks and it has been added to the to-do list of the developer team. It will be included in the future update.

    in reply to: After Save Hook? #24197
    Long NguyenLong Nguyen
    Moderator

    Hi,

    There isn't a hook like that. I'm going to create a feature request for the developer team to support a hook only after saving settings.

    Thank you.

Viewing 15 posts - 3,826 through 3,840 (of 4,839 total)