Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,846 through 1,860 (of 3,958 total)
  • Author
    Posts
  • in reply to: Metabox 4.15.4 (switch) #11191
    Anh TranAnh Tran
    Keymaster

    I'm sorry for the "re-save". You can write a script to help you doing this.

    Regarding the datetime field, if you set 'std' => ' ', then when saving the post without specifying the datetime, it will save exactly as ' ' in the database. Actually, the plugin treats datetime field like a text field, unless you set 'timestamp' => true, which converts datetime into integer. And then in that case, the value is kind of unexpected, cause ' ' is converted to incorrect value.

    in reply to: Metabox 4.15.4 (switch) #11189
    Anh TranAnh Tran
    Keymaster

    I've just fixed it on Github. Can you please try it?

    Thanks
    Anh

    in reply to: Metabox 4.15.4 (switch) #11188
    Anh TranAnh Tran
    Keymaster

    Hi Hazmi,

    Sorry for the late reply. In the previous topic, I marked it as "resolved" when I pushed the commit that I thought it fixed the bug.

    Let me check it again and will reply you soon.

    in reply to: Error after asign category to custom post type #11187
    Anh TranAnh Tran
    Keymaster

    Hi Dan,

    We have resolved this issue on Meta Box Users group on Facebook. Let me quote here in case anyone needed:

    The CPT you created had some un-rendered labels. So I guess when you created the new CPT and you hit the Save button too fast (probably by press Enter), which makes the JS code hasn't finished rendering all the labels and settings. Thus data saved is incorrect and makes WP doesn't understand.

    I tried to find that post ID (using the export tool of WP), and run a wp_delete_post( ID ) to remove it. Everything goes back.

    in reply to: Code Snippet Error in KB? #11149
    Anh TranAnh Tran
    Keymaster

    Thanks a lot! I've just fixed it. It should be:

    MB_Relationships_API::register( array(
        'id'   => 'posts_to_pages',
        'from' => array(
            'object_type'  => 'post',
            'admin_column' => 'true',  // THIS!
        ),
        'to'   => array(
            'object_type'  => 'post',
            'post_type'    => 'page',
            'admin_column' => 'after title', // THIS!
        ),
    ) );
    in reply to: Events to Venues #11148
    Anh TranAnh Tran
    Keymaster

    Hi Neil,

    1 - Yes, you can add more relationships. Just repeat the code MB_Relationships_API::register.
    2 - To change the box title, please set the relationship info when you register it.

    I've written in details about that in the documentation. Please take a look.

    in reply to: using shortcode to display post title with link #11147
    Anh TranAnh Tran
    Keymaster

    When you select a field to connect, choose the Insert button, not Connect. That inserts a shortcode into the field. Then you can insert another shortcode, making them display inline.

    Please see this video:

    http://recordit.co/J2GDrpuays

    in reply to: Export / Import #11134
    Anh TranAnh Tran
    Keymaster

    In the all field groups screen, please select a field group and select Export from the dropdown, like this:

    https://imgur.elightup.com/0bm6TJ9.png

    in reply to: Export / Import #11129
    Anh TranAnh Tran
    Keymaster

    Hello,

    It's kind of impossible to revert the PHP code into MB Builder .dat file. Once you deleted the meta box in MB Builder, it's actually gone. If you want to edit, then please create it again.

    in reply to: Tabs Filterable Post Type #11123
    Anh TranAnh Tran
    Keymaster

    Hello,

    Yes, you can do that with Conditional Logic extension. Please see this tutorial.

    in reply to: Font end image upload input not showing #11122
    Anh TranAnh Tran
    Keymaster

    Hi Harrison,

    Can you please re-upload your code? I see only a text "Hey" in the link.

    in reply to: Radio Field - collapse class #11121
    Anh TranAnh Tran
    Keymaster

    Hi David,

    It's actually a CSS bug. The plugin uses collapse CSS class, which is too generic and conflicts with Bootstrap. I've fixed it in this commit.

    in reply to: Events to Venues #11120
    Anh TranAnh Tran
    Keymaster

    Yes, it possible. You just need to select the existing venues from the dropdown.

    in reply to: Display fields with confirmation notice #11118
    Anh TranAnh Tran
    Keymaster

    Hi Joseph,

    It's not possible at the moment. I'll add this feature to the next version.

    Thanks for the idea!

    in reply to: Events to Venues #11117
    Anh TranAnh Tran
    Keymaster

    Hi, it should be like this:

    add_action( 'mb_relationships_init', function() {
        MB_Relationships_API::register( array(
            'id'   => 'posts_to_posts',
            'from' => 'event', // Your event CPT
            'to'   => 'venue', // Your venue CPT
        ) );
    } );
Viewing 15 posts - 1,846 through 1,860 (of 3,958 total)