Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHello,
Do you see images displayed when you update the post? Sometimes it takes some seconds to fully load the images.
Anh Tran
KeymasterHi Jason, can you give me the updated code to register meta box to check again? Have you taken a look at my code?
Anh Tran
KeymasterHi FED,
Since 4.15, I've optimized the code for all "choice" field. I removed the
filter_optionsfunction that is not needed. Can you check the source code of thechoicefield and try the latest version on Github?Anh Tran
KeymasterHi, can you just try putting this code into your theme's
functions.phpfile?add_action( 'mb_relationships_init', function() { MB_Relationships_API::register( array( 'id' => 'posts_to_pages', 'from' => 'post', 'to' => 'page', ) ); } );You'll see meta boxes "Connected From" and "Connects To" for posts and pages. It's the most basic usage.
Please try it.
Anh Tran
KeymasterHey guys, I've just pushed 2 commits to fix this problem on Github. Could you please try it and let me know the result?
Thanks,
AnhAnh Tran
KeymasterHello,
Thanks a lot for your reporting! I've noticed the problem, too and will fix it today!
Anh Tran
KeymasterHi Michael,
What you asked is kind of pulling data from MB Term Meta to the Themer. This is not supported at the moment. We'll add it in the next version.
August 16, 2018 at 2:36 PM in reply to: ✅Text limit applying to sibling text input (using groups) #11023Anh Tran
KeymasterHello, let me check it. I think the Text Limiter plugin doesn't work well with clone.
Update: I've just fixed it in version 1.1.0. Please update!
Anh Tran
KeymasterIt's not been added to the Builder yet. We'll update the Builder soon.
August 16, 2018 at 2:21 PM in reply to: ✅Submenu title does not work in addon MB Settings Page #11020Anh Tran
KeymasterHello,
The
submenu_titleworks only if the parent menu has at least one child. So if you create only one top-level settings page, it won't show the submenu. You need to create another sub-page, then thesubmenu_titlewill show in the menu.Anh Tran
KeymasterHi Bezzo,
Interesting question! Thanks for asking this.
Using
wpml-config.xmlis the standard way and is recommended by WPML. However, if you need to have different settings per language, you can use theICL_LANGUAGE_CODEconstant to detect current language and set the field IDs based on that.This is the sample code:
$prefix = ICL_LANGUAGE_CODE . '_'; $meta_boxes[] = [ 'title' => 'Fields', 'fields' => [ [ 'id' => $prefix . 'text', 'name' => 'Text', 'type' => 'text', ], // Other fields. ], ];To get the field value, you can create a helper function like this:
function my_setting( $field_id ) { $option_name = 'my_option'; $field_id = ICL_LANGUAGE_CODE . '_' . $field_id; // Prepend the language code. return rwmb_meta( $field_id, array( 'object_type' => 'setting' ), $option_name ); }Anh Tran
KeymasterHi Nick,
I understand. However, the problem is Beaver Themer auto outputs text using
wpautop, which wraps text in<p>tag.Why don't you use CSS to reduce the spacing? I think it's fast and works.
August 16, 2018 at 12:01 PM in reply to: ✅Frontend edit button not showing up on custom post type single #11017Anh Tran
KeymasterAnh Tran
KeymasterHi Jason,
I found 3 things:
- Your syntax isn't correct. You need to put validation rules as a param of meta box, not under
fields. Here is the correct code: https://ghostbin.com/paste/gnch6 -
In the rules and messages, because the field is a checkbox list, its checkboxes has name
obh_member_membership_tags[], notobh_member_membership_tags. We have to use the input name, not the field ID. See the code in point 1 how I fixed it. I should have mentioned that clearer in the docs. -
There's also a bug with Meta Box, I've fixed it on Github.
Please try it and let me know if there's still any bug.
- Your syntax isn't correct. You need to put validation rules as a param of meta box, not under
-
AuthorPosts