Forum Replies Created
-
AuthorPosts
-
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"].February 3, 2020 at 8:09 AM in reply to: ✅Getting the entire options array, deleting the entire options array #18104Anh Tran
KeymasterHi,
All the option is stored in a single option in the WP database. So you can just use
get_optionanddelete_optionfunctions to get and remove them. Just note that you need to pass theoption_name, not settings page ID.Anh Tran
KeymasterHi guys, sorry for not following up the thread. I think the solution above should work. Please let me know if you have any trouble with that.
February 1, 2020 at 3:23 PM in reply to: ✅Beaver Themer Field Connecter Not Working with Users #18090Anh Tran
KeymasterHi, I've just updated the plugin on Github to support post author's and user's custom fields. Please try it and let me know if you need anything.
Anh Tran
KeymasterHi,
I think "matches" is a many-to-many relationship, and you can use the plugin to create that relationship between users.
February 1, 2020 at 9:55 AM in reply to: ✅Beaver Themer Field Connecter Not Working with Users #18085Anh Tran
KeymasterHi, user meta is not supported yet. It's in our list of task and we'll do it soon.
-
AuthorPosts