Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 406 through 420 (of 3,702 total)
  • Author
    Posts
  • in reply to: Metabox for page template disappears #17894
    Anh TranAnh Tran
    Keymaster

    Hi,

    In the block editor, the context after_title no longer works. Please use the advanced or normal context. And also change the template to array. This code works:

    'show' => array(
        'template' => ['templates/template-cover.php']
    ),
    'context' => 'advanced',
    in reply to: Plugin Tutorials #17891
    Anh TranAnh Tran
    Keymaster

    Hi,

    Thanks for your question.

    Writing a plugin for Meta Box has nothing special than a normal WordPress plugin. You can follow WordPress Codex or take a look at the source code of free extensions to have a starting point.

    in reply to: Input ID issues when using fieldset_text within group #17890
    Anh TranAnh Tran
    Keymaster

    Hi Joe,

    Thanks for your feedback. I've fixed this and it will be available in the next version of MB Group.

    in reply to: Missing 'Link field' #17889
    Anh TranAnh Tran
    Keymaster

    Hi Davide,

    We don't have a link field yet. There are not many people asking for this. However, I've put it in our to-do list.

    in reply to: OpenStreetMap is not loading properly in inner Tabs #17888
    Anh TranAnh Tran
    Keymaster

    Hi Saqib,

    Thanks for your feedback. This bug is fixed here.

    in reply to: Hooking into get_post_metadata and add_post_metadata #17887
    Anh TranAnh Tran
    Keymaster

    @COMCEPT: currently, it's the only solution. We'll add more higher API to the plugin in future releases.

    Anh TranAnh Tran
    Keymaster

    Hi,

    Thanks for your suggestion. I've added "url" to all sizes. It will available in the next version of Meta Box.

    in reply to: Strange wysiwyg behavior inside group #17875
    Anh TranAnh Tran
    Keymaster

    Hi Jackky,

    I found the problems. It's kind of a complicated thing in Gutenberg, since the editor is generated on demand using JavaScript. So, some PHP options won't be applied. And in that case, the default settings of the editor is applied. I'm afraid I don't have a good solution for it at the moment.

    in reply to: Collapsible group label bug #17874
    Anh TranAnh Tran
    Keymaster

    Hi Jackky,

    I think the problem is the theme. As you know, WP allows theme to add custom style to the editor. And that might affect the plugin's CSS. I'd suggest you add some small CSS to the edit screen to fix this issue. We've got a tutorial on doing this.

    in reply to: MB Conditional Logic is not working! #17863
    Anh TranAnh Tran
    Keymaster

    Hi Cristiano, it's just updated.

    in reply to: std param issue #17862
    Anh TranAnh Tran
    Keymaster

    Hi Jackky,

    Thanks for your feedback. It's fixed in the latest version.

    in reply to: ℹ️Create User "Favorites"? #17861
    Anh TranAnh Tran
    Keymaster

    Hi,

    Thanks for asking a great question.

    While I think it's totally doable with Meta Box, it requires custom coding. I imagine the steps will be like this:

    User clicks a button to mark a post or User a “Favorite”

    • Add a custom link to the post for users to mark as a favorite
    • When clicking that link, send an Ajax request to do the job
    • In the Ajax callback, use MB_Relationship_API::add to create connections between users and posts

    That user’s favorites can be displayed in a list for them

    This can be done with the code in the documentation.

    Users can have multiple favorites. Their favorites are unique to them

    Just set the relationship as many-to-many (default) and MB Relationships can handle the rest.

    I hope that can give you some ideas. Unfortunately, I can't provide ready-to-use code.

    in reply to: Hooking into get_post_metadata and add_post_metadata #17860
    Anh TranAnh Tran
    Keymaster

    Hi Daniele & Dave,

    You can use raw SQL code to read and write data to your custom table. It's simple like this:

    // Read
    global $wpdb;
    $value = $wpdb->get_var( 'SELECT field_id FROM your_table WHERE ID=123' );
    
    // Write
    global $wpdb;
    $wpdb->update( 'your_table', ['field_id' => $value], ['ID' => 123] );
    in reply to: Custom Fields Don't Display as Dynamic Data in Elementor #17858
    Anh TranAnh Tran
    Keymaster

    We have figured it out.

    The problem is a field group created in MB Builder saves data to custom table, but there's no custom table created. Removing custom table makes the fields saving again.

    in reply to: Custom Fields Don't Display as Dynamic Data in Elementor #17837
    Anh TranAnh Tran
    Keymaster

    Hi Matt, sorry for the delay. Can you send me a temporary admin account to take a closer look?

Viewing 15 posts - 406 through 420 (of 3,702 total)