Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 2,761 through 2,775 (of 3,707 total)
  • Author
    Posts
  • in reply to: Problem with clonable wysywig #5841
    Anh TranAnh Tran
    Keymaster

    Hi Hazmi, sorry for late reply. Can you post your code here?

    Anh TranAnh Tran
    Keymaster

    Why do you need 4 meta boxes / forms? Is it just easier to create 1 meta box / form with all the fields? You can use the heading, divider fields to keep them separated. Or use custom_html field to insert custom HTML between them.

    I think it's better than creating 4 forms (and the shortcode can't handle multiple IDs at the moment).

    Anh TranAnh Tran
    Keymaster

    Do you mean after submitting the new post, show that post for user to keep editing?

    In that case, I'd suggest you create a new shortcode, paste it into new page and redirect it. Here is the code I'm thinking about:

    add_action( 'rwmb_frontend_after_save_post', 'prefix_redirect' );
    function prefix_redirect() {
        wp_safe_redirect( home_url( '/page-2/' ) );
    }
    in reply to: Problem with clonable wysywig #5805
    Anh TranAnh Tran
    Keymaster

    Hi Hazmi, there's a bug of cloning wysiwyg inside a multi-level nested groups. I'm working on it and will update the plugin as soon as it's fixed.

    in reply to: Checkbox Tree Questions #5786
    Anh TranAnh Tran
    Keymaster

    Hi,

    All the options (parent or children) are treated equally. And you have to select individual items so save the value. So if you select the parent element, it doesn't auto select all of its children. You still need to manually check each of them. This way you can select only some of them, not all nor none.

    In case you want to toggle all the selection, you can add a parameter 'select_all_none' => true. However, it works with all options.

    To populate the value before it's saved, you can use the filter rwmb_{$field_id}_value.

    Hope that helps.

    in reply to: Retrieving post type from multisite #5780
    Anh TranAnh Tran
    Keymaster

    Hi,

    I'm afraid the post field can't get posts across your multisite. It uses WP_Query to get posts, which has effect only on the current site.

    To resolve this, you need to make your own query and get the posts. Then use select_advanced field to show them.

    Anh TranAnh Tran
    Keymaster

    Probably your plugin loads the file that contains rwmb_meta_boxes too late. Make sure to load it before init hook.

    in reply to: Undefined index in admin columns #5753
    Anh TranAnh Tran
    Keymaster

    Hi FED, thanks for your feedback. I will update the code now.

    in reply to: Dynamic assign values to group field #5748
    Anh TranAnh Tran
    Keymaster

    I think you can try using JS to listen to the change event of the select2 library (it's fired when you select a post). Then send an ajax request to get the post's custom fields and fill in other fields in the group.

    That's the only way I can think of for now.

    in reply to: Dynamic assign values to group field #5741
    Anh TranAnh Tran
    Keymaster

    Not sure what you want. Do you mean when changing the post field, another field is populated with it's post field (like post title, post date, etc.)?

    in reply to: Email filter - possible to apply? #5730
    Anh TranAnh Tran
    Keymaster

    Hi,

    I think you just need to run this code:

    <?php echo eae_encode_emails( wp_kses( $secondarytext, $allowed_tags) ); ?>

    in reply to: Price of Upgrading, and support and updates #5726
    Anh TranAnh Tran
    Keymaster

    Hi,

    You can upgrade from the Core Bundle to Developer Bundle with only $100 and have full 1 year support + updates, counting from the day you upgrade (not from the day you purchased the Core Bundle).

    Anh TranAnh Tran
    Keymaster

    @jroxbury: Can you post your code?

    The code of @Namennaj has a problem: he uses the field with id content, which is the same as the id of the main editor. The ID must be different and unique.

    in reply to: Last metabox update broke tabs in WPML #5702
    Anh TranAnh Tran
    Keymaster

    I got it.

    The problem is some fields are set to "Don't translate" mode.

    https://imgur.com/CsWlwzU

    Those fields won't be visible to enter the content. For more info, please check this topic.

    in reply to: textarea_rows option doesn't work inside tabs #5701
    Anh TranAnh Tran
    Keymaster

    Hi,

    Looks like the TinyMCE JavaScript doesn't auto detect the height of the editor when it's hidden (inside 2nd, 3rd tab). In this case, I'd suggest using editor_height option for the editor instead of textarea_rows, like this:

    'options' => array( 'editor_height' => 400 ),

    The value is the height of the editor in pixels.

Viewing 15 posts - 2,761 through 2,775 (of 3,707 total)