Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 2,491 through 2,505 (of 3,707 total)
  • Author
    Posts
  • in reply to: Using Radio Fields Properly #8056
    Anh TranAnh Tran
    Keymaster

    Hi,

    Please try to use the following code for your 5 questions:

    $value = rwmb_meta( 'how_to_use_radio_buttons' );
    if ( 'button_one_selected' == $value ) {
        echo 'I Clicked on Radio Button One';
    } elseif ( 'button_two_selected' == $value ) {
        echo 'I Clicked on Radio Button Two';
    } elseif ( 'button_three_selected' == $value ) {
        echo 'I Clicked on Radio Button Three';
    } elseif ( 'button_four_selected' == $value ) {
        echo 'I Clicked on Radio Button Four';
    } elseif ( 'button_five_selected' == $value ) {
        echo 'I Clicked on Radio Button Five';
    }

    Basically, it's the if..else statement. You just need to check the value of the custom field and output the corresponding text.

    in reply to: Columns are not displayed #8055
    Anh TranAnh Tran
    Keymaster

    Hi,

    Looks like the 1st image correct. Just a stupid question, but have you updated your code on your localhost? The remote host seems to work properly.

    in reply to: Request: Background Field #8033
    Anh TranAnh Tran
    Keymaster

    Hi,

    Just want to let you know that the new field type background is added to Meta Box 4.13.0. Please update to use it. The announcement post with more details will come later today.

    Cheers,
    Anh

    in reply to: Error with Custom Tables Plugin when Deleting Posts #8030
    Anh TranAnh Tran
    Keymaster

    Sorry for this bug. We should have updated Meta Box first, then MB Custom Table. Please update Meta Box now to have it fixed (the new version is released today).

    Thanks,
    Anh

    in reply to: Columns are not displayed #8028
    Anh TranAnh Tran
    Keymaster

    Hi,

    I've just updated both Meta Box and Columns extension to fix this. Please update them as well.

    Thanks,
    Anh

    in reply to: Issue with complex form and columns #8027
    Anh TranAnh Tran
    Keymaster

    Hi guys,

    I've just pushed the new versions for both Meta Box and Columns extensions. Please update and let me know if you still see the bug.

    Thanks,
    Anh

    in reply to: Columns are not displayed #7994
    Anh TranAnh Tran
    Keymaster

    Hi,

    We have some bugs in the Columns extension. We have fixed it, but have to wait to release the new version of Meta Box (by the end of tomorrow) to make it works. Please wait.

    Thanks,
    Anh

    in reply to: edit post link of current post #7993
    Anh TranAnh Tran
    Keymaster

    Hi,

    Sorry, my previous code missed 1 last param. It should be:

    $link = add_query_arg( 'rwmb_frontend_field_post_id', get_the_ID(), $link );

    I have created an edit page on your site, another meta box for test and add the code to page.php to display the edit link. Please take a look.

    in reply to: edit post link of current post #7984
    Anh TranAnh Tran
    Keymaster

    Hi,

    The code home_url( '/page-a/' ) should output the link to page-a. Can you check the code again? Just to make sure you copy the right code.

    in reply to: change positions and translate labels #7961
    Anh TranAnh Tran
    Keymaster

    Hi,

    Yes, you can do that.

    To move the labels from left to top, you can add some CSS to your theme (in the Customizer > Additional CSS):

    .rwmb-label,
    .rwmb-label ~ .rwmb-input {
        width: 100%;
    }

    To translate the labels, there are some ways to do that:

    Method 1: translate the plugin using the Loco Translate plugin. Please follow this instruction.

    Method 2: translate the plugin by overwriting the template files. Please follow these steps:

    - Create a folder mb-frontend-submission in your theme.
    - Copy template files for Title, Content, ... that you want to change from MB Frontend Submission's templates folder to the new mb-frontend-submission above, keeping the same folder structure.
    - Modify the new template files, change the field name to something else if you want.

    Then save those files.

    Cheers,
    Anh

    in reply to: Show posts in select_advanced dropdown ordered by name #7960
    Anh TranAnh Tran
    Keymaster

    That's a little bit weird cause post_type can be either string or array. I will keep digging into this and see what happens.

    Anyway, glad that it resolves your problem.

    Merry Christmas.

    in reply to: Overwriting a filter #7959
    Anh TranAnh Tran
    Keymaster

    No problem :). If you find anything confused or need help, please just post here. I will try my best to explain it the easy way.

    Merry Christmas!

    in reply to: edit post link of current post #7958
    Anh TranAnh Tran
    Keymaster

    I got it.

    I think you can do like this:

    - Create a page for editing the posts (let's say page A) and paste the shortcode to the page content.
    - In any post, create a link to the page A, passing the post_id parameter via query string, like this:

    $link = home_url( '/page-a/' );
    $link = add_query_arg( 'rwmb_frontend_field_post_id', get_the_ID() );
    echo '<a href="', $link, '">Edit this post</a>';
    in reply to: Show posts in select_advanced dropdown ordered by name #7946
    Anh TranAnh Tran
    Keymaster

    Please try adding a parameter ’suppress_filters’ => true (or false) to the query_args. I read about this param somewhere but couldn’t find the correct post.

    in reply to: problems with parent page selection with post field. #7940
    Anh TranAnh Tran
    Keymaster

    Sorry, I forgot to bump the version 1.2.1 on the website. Please just update the MB Frontend Submission again.

Viewing 15 posts - 2,491 through 2,505 (of 3,707 total)