Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 2,146 through 2,160 (of 3,708 total)
  • Author
    Posts
  • in reply to: How to set the post title to my Name input field? #9649
    Anh TranAnh Tran
    Keymaster

    I see you use the folder template-parts. It should be without it (probably you did it, but please try again), like in this screenshot:

    https://imgur.elightup.com/WpmyMVI.png

    I've just tested and here is the result:

    https://imgur.elightup.com/pEpmbm9.png

    in reply to: โœ…MB Revisions crashed site upon installation #9646
    Anh TranAnh Tran
    Keymaster

    No problem ๐Ÿ™‚

    I've just sent you the refund. It's processed via Gumroad gateway, so you probably need to wait a little bit.

    If you need anything else from me, or you want to try Meta Box extensions, please let me know. I'm happy to help.

    Cheers

    in reply to: โœ…MB Revisions crashed site upon installation #9644
    Anh TranAnh Tran
    Keymaster

    That's totally fine. So you want a refund?

    in reply to: โœ…MB Revisions crashed site upon installation #9642
    Anh TranAnh Tran
    Keymaster

    Hello,

    Yes, this plugin requires Meta Box plugin. Please activate the Meta Box plugin and the error will go away.

    It works only with the custom fields created by the Meta Box plugin, not by Toolset or other custom fields plugin. Because we can use only the API provided by Meta Box to track the changes in the custom fields. Other plugins might don't have that API.

    Anh TranAnh Tran
    Keymaster

    Hello,

    Thanks for asking great questions:

    1) Can you please post a screenshot of the broken layout? And perhaps the code that you use to create fields?
    2) The submit button is for the whole form, so it's out of the tabs. To make it like switching tabs, I think the only way is using some custom JavaScript. Are you familiar with coding?
    3) You can hook to rwmb_frontend_after_process to run your own function which adds a product. Please see this docs for more info: https://docs.metabox.io/extensions/mb-frontend-submission/#form-actions

    Anh TranAnh Tran
    Keymaster

    Hi Alisha,

    Let me summarize your question: load a list of players based on the value of a team.

    I think it's not possible, because the list of players need to be queried against the database to get the list of posts. And that should be updated instantly when you change the home team value. Sorry, but I can't find a quick solution for this yet.

    in reply to: How to set the post title to my Name input field? #9635
    Anh TranAnh Tran
    Keymaster

    Hello,

    The post title is displayed in the post_fields attribute of the shortcode. Please use the MB Frontend Submission to add other fields to the form.

    In your situation, it sounds like changing the label for post title from "Post Title" to "Name".

    So, please create a folder in your theme called mb-frontend-submission. Inside that folder, create a sub-folder called post. And inside post, create a file title.php, which contains the following code (don't worry, just copy and paste):

    <?php
    $title = $data->post_id ? get_post_field( 'post_title', $data->post_id ) : '';
    $field = apply_filters( 'rwmb_frontend_post_title', array(
        'type' => 'text',
        'name' => esc_html__( 'Name', 'rwmb-frontend-submission' ),
        'id'   => 'post_title',
        'std'  => $title,
    ) );
    $field = RWMB_Field::call( 'normalize', $field );
    RWMB_Field::call( $field, 'admin_enqueue_scripts' );
    RWMB_Field::call( 'show', $field, false, $data->post_id );

    That's it!

    Please try and let me know how it works.

    in reply to: Order of multiple meta boxes on a page #9633
    Anh TranAnh Tran
    Keymaster

    Hello,

    When you reorder meta boxes in the edit screen, the order is saved in the user meta called meta-box-order_$posttype. So, to get that order, you need to run:

    $order = get_user_meta( get_current_user_id(), 'meta-box-order_yourposttype', true );
    var_dump( $order );

    See this answer on WPSE for some other info:

    https://wordpress.stackexchange.com/q/70204/2051

    in reply to: Loads options of select that depends of other select #9632
    Anh TranAnh Tran
    Keymaster

    Hi,

    This is very specific, so I think the only way to do that is via custom JavaScript.

    • You listen on "change" event of the parent select
    • Get the options' values you want to combine from 3 selects
    • Update the list of options of a select field.

    Without custom JavaScript, I can't think about another solution.

    in reply to: Can we create mutlistep form #9631
    Anh TranAnh Tran
    Keymaster

    Hi,

    Unfortunately, the plugin hasn't supported multiple steps yet :(.

    in reply to: โœ…Image to show on page #9630
    Anh TranAnh Tran
    Keymaster

    Hi Dave,

    I've done some work on this. I created a plugin called "MB Beaver Builder Integration" at:

    https://github.com/wpmetabox/meta-box-beaver-themer-integrator

    When you choose a field to connect to (like a heading field), you'll see Meta Box Field under the Posts group. And from there you can choose which field to insert. Please try and let me know how it goes.

    in reply to: required fields #9610
    Anh TranAnh Tran
    Keymaster

    Hello,

    It would be hard as the custom fields created by Meta Box needs to hook in to the wp_insert_user to save the data. If you manually create the user, that code should happen before the form is processed. Let me see if I can provide a way to do that. Please wait.

    Anh

    Anh TranAnh Tran
    Keymaster

    Hello,

    Are you using the User Registration addon? Can you please send me a copy to check it via email [email protected]? I have only a copy of the core plugin, which doesn't have the user fields.

    in reply to: Forgotten test code on line 30 #9599
    Anh TranAnh Tran
    Keymaster

    It's fixed now. Please try again.

    Anh TranAnh Tran
    Keymaster

    Hello,

    The address field is just a text field. While it's used to auto-suggest the map location, it acts like a normal text field. So you can just use the helper function to get its value and output it in the frontend.

Viewing 15 posts - 2,146 through 2,160 (of 3,708 total)