Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Neil,
1 - Yes, you can add more relationships. Just repeat the code
MB_Relationships_API::register.
2 - To change the box title, please set the relationship info when you register it.I've written in details about that in the documentation. Please take a look.
Anh Tran
KeymasterWhen you select a field to connect, choose the Insert button, not Connect. That inserts a shortcode into the field. Then you can insert another shortcode, making them display inline.
Please see this video:
Anh Tran
KeymasterIn the all field groups screen, please select a field group and select Export from the dropdown, like this:
Anh Tran
KeymasterHello,
It's kind of impossible to revert the PHP code into MB Builder .dat file. Once you deleted the meta box in MB Builder, it's actually gone. If you want to edit, then please create it again.
Anh Tran
KeymasterHello,
Yes, you can do that with Conditional Logic extension. Please see this tutorial.
Anh Tran
KeymasterHi Harrison,
Can you please re-upload your code? I see only a text "Hey" in the link.
Anh Tran
KeymasterHi David,
It's actually a CSS bug. The plugin uses
collapseCSS class, which is too generic and conflicts with Bootstrap. I've fixed it in this commit.Anh Tran
KeymasterYes, it possible. You just need to select the existing venues from the dropdown.
Anh Tran
KeymasterHi Joseph,
It's not possible at the moment. I'll add this feature to the next version.
Thanks for the idea!
Anh Tran
KeymasterHi, it should be like this:
add_action( 'mb_relationships_init', function() { MB_Relationships_API::register( array( 'id' => 'posts_to_posts', 'from' => 'event', // Your event CPT 'to' => 'venue', // Your venue CPT ) ); } );Anh Tran
KeymasterHi,
Beaver Themer already has shortcode to insert post title. See these screenshots:
Anh Tran
KeymasterHi Ale,
There is a nice tutorial showing how to search WordPress by all custom fields. It requires some coding and works for all text fields.
Or you can modify the query like this:
add_action( 'pre_get_posts', function( $query ) { if ( is_admin() || ! $query->is_main_query() ) { return; } $query->set( 'meta_query', [ 'relation' => 'OR', [ 'key' => 'field_id1', 'value' => '"' . get_search_query() . '"', 'compare' => 'LIKE' ], [ 'key' => 'field_id2', 'value' => '"' . get_search_query() . '"', 'compare' => 'LIKE' ], [ 'key' => 'field_id2', 'value' => '"' . get_search_query() . '"', 'compare' => 'LIKE' ] ] ); } );Anh Tran
KeymasterHi,
I've checked again and realized a change in the TinyMCE from WP. I pushed a fixed on Github. Can you please try and let me know how it goes?
August 23, 2018 at 3:09 PM in reply to: ✅Problem with additional custom field in existing meta box #11099Anh Tran
KeymasterI see you're using Include Exclude extension. Can you check if these fields appear on that specific page template?
Anh Tran
KeymasterHi Hazmi,
WP auto saves the state of the editor and applies that to all editors when refresh the page. So if you switch to Text mode in one editor and then refresh the page, all editors will have Text mode active.
Regarding the problem of both Visual and Text mode active, do you see any error is the console? Can you Ctrl-F5 to refresh the page with cache clear?
-
AuthorPosts