Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 2,101 through 2,115 (of 3,958 total)
  • Author
    Posts
  • in reply to: edit profile #10060
    Anh TranAnh Tran
    Keymaster

    Hi, is the email/password issue resolved by your code in this topic?

    Anh TranAnh Tran
    Keymaster

    Hello, I've just tried your code and it works. Did you see any error in the console?

    Anh TranAnh Tran
    Keymaster

    Hello, please try this:

    Field: just use c_country
    Operator: contains. The value of a checkbox list is always an array. So it should "contains" your selection.
    Value: the value of "Australia" that you set in the Options list of the c_country field.

    Please try and let me know how it goes.

    in reply to: Can't Update/Publish #10057
    Anh TranAnh Tran
    Keymaster

    Hi Jose, is there any plugin that you installed on your site? Can you install this plugin and post the result here?

    in reply to: admin columns and custom table plugins #10056
    Anh TranAnh Tran
    Keymaster

    Hi Garenor,

    The Admin Columns extensions works partly with the custom table. It can show the data from custom table, but not sorting or searching. I'll update it to support custom table.

    in reply to: Columns randomly nesting within them selves #10055
    Anh TranAnh Tran
    Keymaster

    Hi David, can you post the code that register meta boxes with columns? So I can debug it?

    Anh TranAnh Tran
    Keymaster

    Hello, the last question can be done with the_content filter. Please see the docs and example here.

    in reply to: How can I hide form #10052
    Anh TranAnh Tran
    Keymaster

    Hi Calpaq, I got it. I think in this case, it's better to use some conditional check in your template. Something like this:

    if ( your_is_cart_empty() ) {
        echo 'Please go back and add some items';
    } else {
        echo do_shortcode( '[mb_frontend_form id="meta-box-id"]' );
    }

    It's much easier than filter the form or change the fields inside.

    in reply to: Getting Field Value #10041
    Anh TranAnh Tran
    Keymaster

    Very nice snippet, David. I've added it to the Library on Github :).

    Anh TranAnh Tran
    Keymaster

    Hello,

    My developer is still working on this bug. Looks like the Builder extension doesn't export the value correctly. We'll let you know when it's fixed.

    Anh TranAnh Tran
    Keymaster

    Hi,

    I'm quite confused about the slug. WordPress doesn't use it to store custom fields for posts. WordPress use a combination of (post ID, meta key, meta value) in the DB. That's the post ID that Meta Box is using.

    Anyway, if there's anything involved with "slug", then it's not supported by Meta Box :(. So a custom migration script is required, I guess.

    in reply to: Comment Meta with fronted submission #10037
    Anh TranAnh Tran
    Keymaster

    Hi Ahmed,

    To use the MB Comment Meta, all you need to do is replacing post_types rule in Meta Box by 'type' => 'comment'. That's just simple.

    Anyway, comment is a special content type in WordPress and it uses a totally different API to save content. Unlike posts and custom post types, the content for comments is different. So I'm afraid the MB Frontend Submission can't work in this situation.

    Anh

    in reply to: Getting Field Value #10026
    Anh TranAnh Tran
    Keymaster

    Hi David,

    Yes, that's the normal behaviour. When you define a group, its sub-fields won't have a separated values in the database. Instead their value is stored inside the top-level group. So, you need to get the single value for the top-level group, and you'll get an array of all sub-fields values. Then you can parse this array to show whatever you want.

    Anh TranAnh Tran
    Keymaster

    Hi,

    To display the images in thumbnail with links to the full-size, please use this shortcode:

    [rwmb_meta meta_key="field-id" link="true" size="thumbnail"]

    You can also use code snippet, if you don't want to use shortcode:

    $images = rwmb_meta( 'field-id', array( 'size' => 'thumbnail' ) );
    foreach ( $images as $image ) {
        echo '<a href="', $image['full_url'], '"><img src="', $image['url'], '"></a>';
    }

    For more info, please check out the docs.

    in reply to: Best Storage Strategy for Performance and Scalability? #10024
    Anh TranAnh Tran
    Keymaster

    If you're going to use cloneable groups, then the data is always saved as serialized arrays. The flat table is compatible for only non-cloneable fields.

Viewing 15 posts - 2,101 through 2,115 (of 3,958 total)