Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 361 through 375 (of 3,958 total)
  • Author
    Posts
  • in reply to: 'label-password' Shortcode attribute issue #18160
    Anh TranAnh Tran
    Keymaster

    Which labels did you mean? When users are not logged it, they'll see an error message. Is that the text you want to change?

    Anh TranAnh Tran
    Keymaster

    Hi,

    I answered in the other topic. I think the problem is the same. Can you please check it?

    Anh TranAnh Tran
    Keymaster

    Hi, I've tried to replicate the bug, but I couldn't. Please my video:

    https://www.loom.com/share/a6e82008e3ff4074aecdb7a47a86ce22

    I setup a settings page with image_advanced field, and try to get the value using the helper function or using the code from Ambr above. Both works without showing any error. I also installed Smush plugin and ran it, but no errors.

    Can you please check if there's something I missed? If possible, please send me a temporary admin account to check.

    in reply to: Admin Columns Not Showing Data #18145
    Anh TranAnh Tran
    Keymaster

    Hi Jacob,

    Sorry for the delay. I've tested with your code and see it works. Please see this video:

    https://www.loom.com/share/d1f84cdd5d144e0fbd1b1d597bd6a326

    in reply to: Post_Type argument for Post field type #18142
    Anh TranAnh Tran
    Keymaster

    Hi, I've just tried your code and see it works well. Can you please provide more details on the bug?

    in reply to: WPML Issue with file_advanced input #18140
    Anh TranAnh Tran
    Keymaster

    Hi Archimidis,

    If you need to enter custom value for custom fields of posts in secondary language, then you probably need to set not translating the posts, like in this screenshot:

    https://prnt.sc/qxr7bb

    Anh TranAnh Tran
    Keymaster

    Hi,

    Do you have any plugin for media settings? That lines just loop through all image sizes to get correct URL for all sizes.

    in reply to: url type field bug #18138
    Anh TranAnh Tran
    Keymaster

    Hi Jackky,

    That's right. Because the input type=url (which is used in URL field) can't be validated in Gutenberg due to Ajax submission. Unfortunately, there's no workaround for it at the moment :(.

    in reply to: Hidden field does not have value #18137
    Anh TranAnh Tran
    Keymaster

    Hi Calpaq,

    I've just tested with your code and see the value is saved in the DB and outputted on the front end well. Please see this video:

    https://www.loom.com/share/01825f5971624b159f50fdccf7b86c5a

    in reply to: 'label-password' Shortcode attribute issue #18136
    Anh TranAnh Tran
    Keymaster

    Hi Pogeun,

    Can you try label_password instead of label-password (underscore, not dash)?

    Anh TranAnh Tran
    Keymaster

    Hi LU,

    You can do that by adding this snippet to your theme:

    add_filter( 'rwmb_admin_menu', '__return_false', 99 );
    
    in reply to: Membership Directory #18108
    Anh TranAnh Tran
    Keymaster

    Hi James,

    I've not used Posts Table Pro, so I can't say about it. But you can do it with Meta Box plugins.

    Do I set up 2 custom post types? 1 for dealers & 1 for salespeople & connect them using MB Relationships? Or do I make everyone a WP user & add custom fields to Users with the User Meta extension?

    This is a great question and I think the most important question, no matter you choose to do it by your own or use Posts Table Pro plugin.

    I'll list the pros and cons of each method and you can choose one (just note that both methods work!):

    Using post types:
    - Pros: You can benefit from WP template system (e.g. archive page, single page)
    - Cons: There's no login for post types. So you still need to create a post for each user and connect it with the user. You can use MB Relationships for that purpose or just use post_author attribute from WP.

    Using user profile:
    - Pros: No need to create a post type for users and no need to connect that post type with user.
    - Cons: You have to work on the template by your own (querying all (one) users and display their info).

    In long term, I think the 2nd method is better since the data is more simpler to understand. The template issue is not a big problem, I guess.

    in reply to: Access a field before saving #18107
    Anh TranAnh Tran
    Keymaster

    Hi,

    If you need to modify field value before saving into the DB, please use rwmb_{$field_id}_value filter or use rwmb_after_save_field action.

    in reply to: Empty field group #18106
    Anh TranAnh Tran
    Keymaster

    Thanks for your feedback. I'll check and fix this bug.

    in reply to: Shortcodes don't display on custom posts #18105
    Anh TranAnh Tran
    Keymaster

    Hi Allan,

    The shortcode rwmb_meta you use assumes that the field value it gets is for the current post (which is a dog profile). That's why it doesn't output anything, since cat's age is a cat's custom field.

    To display a custom field of a cat profile, please pass the object_id to the shortcode: [rwmb_meta id="cats_age" object_id="123"].

Viewing 15 posts - 361 through 375 (of 3,958 total)