Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 2,086 through 2,100 (of 3,702 total)
  • Author
    Posts
  • 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.

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

    Hi Calpaq,

    Let me try to understand your problem. Are you trying to put a frontend form in the Cart page? And if there's no products in the cart, you'd want to show a message to users. Otherwise, they need to fill in all the form fields so they can see the Submit button? Am I right?

    in reply to: Image Advanced Field #10022
    Anh TranAnh Tran
    Keymaster

    Hi Dave,

    There are several solutions for that, please check these links:

    https://wordpress.org/plugins/view-own-posts-media-only/
    https://wordpress.stackexchange.com/q/1482/2051

    in reply to: Best way to Bundle MetaBox.io? #10020
    Anh TranAnh Tran
    Keymaster

    Hi Mauro,

    Thanks a lot for your bugs. I've just fixed those typos in the composer.json file, and remove the updater, cause it does nothing. The update is controlled by Composer in this case.

    May I suggest in the future to standardise all the naming of both directories and plug-in init files to one naming convention — be it mb-[plugin name] or meta-box-[plugin name] ?

    Yes, it should be mb-[plugin name]. I'll remember that.

    Another note: many plug-ins have the .svn directory inside, is this the intended behaviour? Shouldn’t all version control information be removed during the install of the components?

    It's the default behaviour of the WPackagist. I found a way to fix this. Please check it out.

    Anh TranAnh Tran
    Keymaster

    Yes, only admins can mark topics as resolved :). I'll do it now.

    in reply to: Make MetaBoxes Visible for Custom Post Types #10013
    Anh TranAnh Tran
    Keymaster

    Haha, Thomas, thanks!

    I had a snippet on the Meta Box Library that shows a meta box for all custom post types. Please check it out!

    Anh TranAnh Tran
    Keymaster

    Hi John,

    Just want to let you know that the admin columns is done. There's no need to use the Admin Columns extension, everything is built-in the Relationships plugin. Please update and check the docs for how to use it.

    Cheers,
    Anh

    Anh TranAnh Tran
    Keymaster

    Done. I also made some improvements for the look and feel as well. Any feedback is welcomed!

    in reply to: Metabox AIO updates #9990
    Anh TranAnh Tran
    Keymaster

    Hi, the Meta Box AIO should be updated instantly after individual extension update. It just requires to do that manually and I forgot to do that yesterday. I'll do it now. Sorry 🙁

    in reply to: Suggestions #9988
    Anh TranAnh Tran
    Keymaster

    Hi Dave,

    Thanks a lot for your suggestion. I really appreciate that. Let me put that in the dev plan 🙂

    FYI: You can save and display date in 2 different formats: https://docs.metabox.io/using-two-date-formats/

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

    Yes, that's true.

    Using flat-table helps you query against the value quicky, in case you want to access the data directly from SQL or via PHPMyAdmin. And when writing PHP code, you don't need to parse the array to get the value. This is also the standard way to store value. The serialized array is the special way WordPress uses to handle for its arrays.

    in reply to: Time Picker Bug? #9977
    Anh TranAnh Tran
    Keymaster

    Oops, let me check that. Thanks!

Viewing 15 posts - 2,086 through 2,100 (of 3,702 total)