Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,531 through 1,545 (of 3,702 total)
  • Author
    Posts
  • in reply to: Add Select Values from Other Custom Fields #12666
    Anh TranAnh Tran
    Keymaster

    Oh, you use group! So the code to get the point should be different a little bit. I've fixed your code to: https://ghostbin.com/paste/9p34h. Please take a look.

    in reply to: Can I export and import custom taxonomies and CPT #12665
    Anh TranAnh Tran
    Keymaster

    Hi,

    Yes, it's possible. Please just use the WordPress Import/Export under Tools > Import / Export to do that. Simply select Post Type and Taxonomy from the list of custom post types when export.

    in reply to: Password Protection and metaboxes #12645
    Anh TranAnh Tran
    Keymaster

    WordPress hard-coded that in its function get_the_content, so there's no filter to do that automatically. Maybe you write a wrapper function for rwmb_meta like this:

    function your_meta( $field_id, $args = [], $post_id = null ) {
        if ( post_password_required ) {
            return 'This post is password protected.';
        }
        return rwmb_meta( $field_id, $args, $post_id );
    }

    Then use your_meta in replace for rwmb_meta.

    in reply to: rwmb_{$field_id}_after_save_field #12644
    Anh TranAnh Tran
    Keymaster

    Just save it in a temporary variable (a class property if you're using a PHP class, or a global variable if you use normal functions).

    in reply to: Setting Advanced Attributes for Admin Columns via MB Builder #12643
    Anh TranAnh Tran
    Keymaster

    Hi,

    Thanks for your feedback.

    I think in the dot notation, you can simply set:

    Advanced attribute key: admin_columns.position
    Advanced attribute value: before name

    (no '.0' in the key).

    Using .0 makes the plugin think it's a multi-dimensional array. Please try again with that.

    Regarding the sorting with value from custom table, we're working on that. At the moment search and sort for custom table is not supported.

    in reply to: Your main plugin "meta-box" ignore language settings in WP #12642
    Anh TranAnh Tran
    Keymaster

    Can you try with a fresh install on http://poopy.life? Also, do you have some input method for keyboards enabled? I've just tried again but couldn't replicate the problem :(.

    in reply to: Trying to create a relationship ends in SQL Error #12635
    Anh TranAnh Tran
    Keymaster

    Can you check the WordPress database to see if the mb_relationships table is created?

    in reply to: Field Type Taxonomy - Twice taxonomy field bug #12624
    Anh TranAnh Tran
    Keymaster

    Hi Charlin,

    You don't need 2 taxonomy fields. One field is enough, because it's used to set post terms. It doesn't store values in custom fields.

    If you want to use 2 taxonomy fields, and save values in custom fields, please use taxonomy_advanced instead.

    in reply to: Trying to create a relationship ends in SQL Error #12622
    Anh TranAnh Tran
    Keymaster

    Hi Vee,

    Looks like no relationships table is created. Can you remove your code first, try to deactivate and re-activate the plugin? Just to make sure the plugin creates table successfully.

    in reply to: rwmb_{$field_id}_after_save_field #12621
    Anh TranAnh Tran
    Keymaster

    It's nearly impossible to guarantee the order of fields saved. So I'd suggest using rwmb_before_save_post hook to get all the old values of a post before other fields are updated. Then use rwmb_after_save_post to update the needed fields.

    in reply to: Best way to translate options page #12619
    Anh TranAnh Tran
    Keymaster

    Hi anja,

    Please follow the instruction in the previous reply and the WPML documentation.

    in reply to: rwmb_{$field_id}_after_save_field #12618
    Anh TranAnh Tran
    Keymaster

    Hi,

    Is the $prefix = property or _property? _property matches the action rwmb__property_level_after_save_field (In this case, $field_id is _property_level).

    I see you are trying to copy values from old fields to new fields. Please note that, this action happens after field _property_level is saved. It doesn't guarantee that it happens before or after other fields are saved.

    in reply to: Password Protection and metaboxes #12614
    Anh TranAnh Tran
    Keymaster

    Hi Ale,

    This depends on how you display custom fields' values in the front end. You need to change your code to check the post status, like this:

    if ( post_password_required() ) {
        echo 'Nothing here';
    } else {
        echo rwmb_meta( 'field_id' );
    }
    in reply to: Missing fields Yoast SEO after Metabox update to 4.15.8 #12613
    Anh TranAnh Tran
    Keymaster

    I have fixed that on Github. Can you please take a look?

    https://github.com/wpmetabox/meta-box

    in reply to: Your main plugin "meta-box" ignore language settings in WP #12612
    Anh TranAnh Tran
    Keymaster

    Yes, Meta Box is activated. See this video: http://recordit.co/oq6Wd5MABC

    Maybe it relates to browser language, extension or other things. The plugin doesn't modify anything related to languages at all.

Viewing 15 posts - 1,531 through 1,545 (of 3,702 total)