Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterWhich labels did you mean? When users are not logged it, they'll see an error message. Is that the text you want to change?
February 6, 2020 at 8:48 AM in reply to: ✅Invalid argument supplied for foreach() in .../inc/fields/image.php on line 166 #18159Anh Tran
KeymasterHi,
I answered in the other topic. I think the problem is the same. Can you please check it?
February 6, 2020 at 8:33 AM in reply to: ✅Bug with images in MB Settings Page after upgrading Meta Box plugin #18158Anh Tran
KeymasterHi, 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_advancedfield, 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.
Anh Tran
KeymasterHi Jacob,
Sorry for the delay. I've tested with your code and see it works. Please see this video:
Anh Tran
KeymasterHi, I've just tried your code and see it works well. Can you please provide more details on the bug?
Anh Tran
KeymasterHi 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:
February 5, 2020 at 2:32 PM in reply to: ✅Bug with images in MB Settings Page after upgrading Meta Box plugin #18139Anh Tran
KeymasterHi,
Do you have any plugin for media settings? That lines just loop through all image sizes to get correct URL for all sizes.
Anh Tran
KeymasterHi 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 :(.
Anh Tran
KeymasterHi 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:
Anh Tran
KeymasterHi Pogeun,
Can you try
label_passwordinstead oflabel-password(underscore, not dash)?February 5, 2020 at 1:53 PM in reply to: Integrate all metabox field method but without backend setting. #18135Anh Tran
KeymasterHi LU,
You can do that by adding this snippet to your theme:
add_filter( 'rwmb_admin_menu', '__return_false', 99 );Anh Tran
KeymasterHi 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 usepost_authorattribute 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.
Anh Tran
KeymasterHi,
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.
Anh Tran
KeymasterThanks for your feedback. I'll check and fix this bug.
Anh Tran
KeymasterHi Allan,
The shortcode
rwmb_metayou 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_idto the shortcode:[rwmb_meta id="cats_age" object_id="123"]. -
AuthorPosts