Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 3,661 through 3,675 (of 3,708 total)
  • Author
    Posts
  • in reply to: Change clone buttontext #692
    Anh TranAnh Tran
    Keymaster

    Ah, you're right. I forgot to tell you that the latest version of Meta Box on Github has correct code which supports valid arguments for the filter. I will push it to wp.org so you can update the plugin now.

    in reply to: Change clone buttontext #689
    Anh TranAnh Tran
    Keymaster

    Version 1.0.1 now supports changing clone button text. Please update the plugin and follow this guide.

    Please let me know if you need any help.
    Best regards!

    in reply to: Number of clones #682
    Anh TranAnh Tran
    Keymaster

    Your idea is interesting. At the moment, this feature has not been inplemented. I think it would be done with Javascript attached on the click event and update the Add more button class or disable attribute. I will think more about that and will imform you when it's done.

    Anh TranAnh Tran
    Keymaster

    Yes, that's right. When you want to register fields with type "group", you need to activate MB Group extension, otherwise it will show the error like you saw.

    in reply to: Change clone buttontext #653
    Anh TranAnh Tran
    Keymaster

    At the moment, the text for clone button is fixed. I will add a filter for you to change it in next version.

    in reply to: Hide Tab #626
    Anh TranAnh Tran
    Keymaster

    Unfortunately this is not possible at the moment. I'd suggest setting up another meta box for page template and use Include/Exclude extension to show/hide it.

    in reply to: Include Group plug-in in theme files with Roots #577
    Anh TranAnh Tran
    Keymaster

    Oh, I see. The problem is you missed the fields parameter for group field. You have to do like this:

    'fields' => array(
        array(
            'id' => 'group',
            'type' => 'group',
            'fields' => array( // you missed this parameter for group
                array(...),
                array(...),
            ),
        ),
    ),
    in reply to: Change order #575
    Anh TranAnh Tran
    Keymaster

    Cool, glad it helps ๐Ÿ™‚

    I'd think about order to records fields. Thanks for your idea!

    in reply to: Change order #572
    Anh TranAnh Tran
    Keymaster

    Are you using get_post_custom to get post meta? Because from what you said, it looks like you display fields in the backend in one order and display fields in the frontend in another order, and as we don't have a function to list all fields in the frontend, the only way to do that I guess is get_post_custom function.

    If so, I'm afraid there's no way to achieve that. The order you register fields = the order fields are displayed in the backend = the order WP processes data and stores in the DB = the order you get with get_post_custom.

    Or maybe you should do something like array_reverse as a trick before displaying fields in the frontend?

    in reply to: Include Group plug-in in theme files with Roots #570
    Anh TranAnh Tran
    Keymaster

    Hi,

    I see that the problem is you use the old way to integrate theme with Meta Box plugin. It's not recommended anymore as it broke as you saw.

    To eliminate this problem, please

    - Remove the first block of code to include Meta Box
    - Install Meta Box from wp.org as a normal plugin
    - Install MB Group extension
    - Register meta boxes according to this documentation (I don't see your full code so I'm not sure you're using rwmb_meta_boxes filter, if yes - then it's perfect, you don't need to change anything, but if no, please update the code).

    I wrote another documentation explaining why we should use plugin instead of included it directly in themes. Please take a look.

    Best regards

    in reply to: Change order #569
    Anh TranAnh Tran
    Keymaster

    All you need to do is moving the array of the latest field to the first place in the fields array, something like in this screenshot:

    in reply to: Change order #567
    Anh TranAnh Tran
    Keymaster

    Hi, as we're using code to register meta boxes and fields, the only way with coding to change fields' order is changing code. There's no easier way to do that :(.

    Best regards.

    in reply to: How to make MB Group work with better-include.php #566
    Anh TranAnh Tran
    Keymaster

    The example is well-written in the extension documentation. All you need is just add include or exclude parameter to meta box definition, no need to add custom function for checking like better-include demo.

    in reply to: How to make MB Group work with better-include.php #558
    Anh TranAnh Tran
    Keymaster

    Unfortunately the better-include.php method uses old way to register meta boxes (via admin_init hook). This way still works, but you can not use it with rwmb_meta_boxes filter, e.g. if you register meta boxes with rwmb_meta_boxes filter, you can't use better-include.php method.

    I'd suggest you use only global $meta_boxes variable to register meta boxes, and remove code to register meta boxes via rwmb_meta_boxes filter.

    A better solution is using MB Include Exclude extension, which is tested with Group extension.

    in reply to: How to make MB Group work with better-include.php #545
    Anh TranAnh Tran
    Keymaster

    No problem, it's quite straight forward. Try this code:

    https://gist.github.com/rilwis/423be7e4c38d14c09642

Viewing 15 posts - 3,661 through 3,675 (of 3,708 total)