Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,966 through 1,980 (of 3,702 total)
  • Author
    Posts
  • in reply to: Select box in media modal appears to be buggy #10597
    Anh TranAnh Tran
    Keymaster

    Hi,

    I've just tested your code and it works correctly. Did you set the correct post ID (for the attachment) when getting the value?

    in reply to: Unable to exclude metabox field with MB Include Exclude #10587
    Anh TranAnh Tran
    Keymaster

    Hi Orice,

    I've just updated both MB Include Exclude and MB Frontend Submission. Now they work well together and you can set rules to show/hide meta boxes in the frontend.

    in reply to: Registration form and standard fields #10584
    Anh TranAnh Tran
    Keymaster

    Yes, of course. The fields are in your code and you can reorder them the way you want.

    Anh TranAnh Tran
    Keymaster

    Done. It's now available on Github.

    Anh TranAnh Tran
    Keymaster

    Hi Guy,

    Thanks for your suggestion. Yes, it was hardcoded in the plugin. I'll add an option & filter for the message and wrap it in a CSS class. That's a good idea.

    in reply to: Unable to exclude metabox field with MB Include Exclude #10574
    Anh TranAnh Tran
    Keymaster

    Hi Orice,

    The MB Include Exclude was created before the MB Frontend Submission quite a long time. So, it checks well in the backend only. I'll make an update to support frontend soon next week.

    in reply to: New Google maps pricing policy and MB geolocation #10573
    Anh TranAnh Tran
    Keymaster

    Hi Michele,

    I've merged the branch into the master branch, so it's available at https://github.com/wpmetabox/meta-box/. At the moment, I only finished the osm field, which is an alternative for map field. If everything goes right, Geolocation will be the next step.

    And yes, I use Nominatim for the geocoding :). I found the wiki, but didn't look at that carefully until I read code of other libraries. It's great and not hard to implement.

    in reply to: Multiple Address Fields for a Single Post #10572
    Anh TranAnh Tran
    Keymaster

    Hi Bernhard,

    Do you mean there are 2 auto-populated address fields, and when users enter 2 different addresses, they will autofill 2 other fields with lat and lng? If so, it's not possible at the moment. The plugin just use only one (or many) auto-populated address fields, but they affect all the autofill fields. I'll try to improve it to make it possible.

    in reply to: Choose the language of the date field #10570
    Anh TranAnh Tran
    Keymaster

    I got it. Please use the date_i18n function as follows:

    $date = get_post_meta( get_the_ID(), 'field_id', true );
    echo date_i18n( 'F j, Y', $date );

    For more info, please check this docs.

    Anh TranAnh Tran
    Keymaster

    Hi Dan,

    The issue with version 1.5.9 was fixed. Please just update it again.

    Regarding the issue with the dismiss notice, please send me via contact form. I'll check it.

    And what do you mean about UABB Info Box module & Meta Box?

    in reply to: Registration form and standard fields #10568
    Anh TranAnh Tran
    Keymaster

    Hi,

    By default, the plugin shortcode only has 3 fields: user email, password and password confirmation. To add fields to the registration form (including standard fields), please create a meta box for user profile, like this:

    add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
        $meta_boxes[] = [
            'title'  => 'Registration',
            'id'     => 'your-registration',
            'type'   => 'user',
            'fields' => [
                [
                    'type' => 'text',
                    'id'   => 'first_name',
                    'name' => 'First Name',
                ],
                [
                    'type' => 'text',
                    'id'   => 'last_name',
                    'name' => 'Last Name',
                ],
                // More fields here
            ]
        ];
        return $meta_boxes;
    } );

    Then include this form in the registration shortcode provided by the plugin:

    [mb_user_profile_register id="your-registration"]

    in reply to: Choose the language of the date field #10535
    Anh TranAnh Tran
    Keymaster

    Yes, that's possible. To output the date in a different format, please use this code:

    rwmb_the_value( $field_id, array( 'format' => 'F j, Y' ) );

    in reply to: How do I integrate custom post with sidebar? #10534
    Anh TranAnh Tran
    Keymaster

    Hi, to register a meta box for a custom post type, please:

    • Go to Meta Box > Custom Fields, click Add New to add a new field group.
    • Then add fields you want from the left panel.
    • Click the tab Settings and select "Posts" in "Show for", and then select your post type below.
    • Click Save Changes button

    Now go back to your custom post type edit screen and you'll see the meta box appear. Enter some info and update the post.

    To show the custom fields's values in the sidebar, there are 2 ways:

    • Put the shortcode [rwmb_meta meta_key="your_field_id"] into the text widget. See this docs for more details.
    • Or you can edit your sidebar.php file of your theme and add some code to display the fields. See this docs for more info.
    in reply to: admin columns not working #10533
    Anh TranAnh Tran
    Keymaster

    Hi,

    Can you post your full code so I can check it out?

    in reply to: Changing REST API Namespace #10532
    Anh TranAnh Tran
    Keymaster

    Hi Austin,

    If you just enable show_in_rest param for a CPT, it will use the default WordPress namespace, which is wp/v2. In order to use a custom namespace, you have to write a custom REST Controller (which is out of the scope of the extension). Please see here for more details.

    Update: In case you write a custom REST Controller, you might disable the rest support in the MB Custom Post Type extension, and add a custom code like this.

Viewing 15 posts - 1,966 through 1,980 (of 3,702 total)