Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi, please try the
block_categoriesfilter.Here is the docs:
Here is a good tutorial: https://getwithgutenberg.com/2019/04/creating-a-block-category/
Both resources say about adding categories. I'm not sure if it supports removing core categories. Please just try.
Anh Tran
KeymasterHi Akram,
Sorry to make you feel like that. What I meant is that's the default behavior of the fields.
You still can change the behavior with the plugin action, like this:
add_action( 'rwmb_after_save_post', function( $post_id ) { $group = get_post_meta( $post_id, 'group_id', true ); $terms = $group['terms'] ?? []; wp_set_post_terms( $post_id, $terms, 'your_taxonomy' ); } );Anh Tran
KeymasterHi Akram,
If you want to set post terms, you have to move the taxonomy field outside the group. You can use MB Conditional Logic to hide the field if you want. If you still need to keep it inside a group, then there's no way to achieve that.
Anh Tran
KeymasterHi Alex, this is the screenshot of the email: https://imgur.elightup.com/0muIt7y.png. I sent from [email protected]. Can you check that again?
August 2, 2019 at 3:50 PM in reply to: ✅MB Elementor Integrator not displaying for setting pages field #15566Anh Tran
KeymasterHi again,
I've just fixed this bug, can you try the development on Github?
Anh Tran
KeymasterHi Alex,
Thanks a lot for your video and code. I've sent you an email with a fix for MB Blocks. Please try it along with the updated version of Meta Box on Github and let me know how it goes.
Anh Tran
KeymasterHi Akram,
Did you put the taxonomy field in a group? Only in that case, the taxonomy terms are saved in the group's meta value and don't set the post terms.
Anh Tran
KeymasterYes, it's:
'meta-box/mb-blocks': 'dev-master'Anh Tran
KeymasterHi,
When the style for settings page is set
no-boxes, meta boxes' titles won't show because there's no box wrapper anymore. It's the expected behavior.August 2, 2019 at 9:43 AM in reply to: ✅Getting post ID from inside the Meta Box Block render_callback #15558Anh Tran
KeymasterHi, I got it. I'll add the post ID in the next version.
Anh Tran
KeymasterHi Alex,
Was you able to save the post after modifying fields data?
Anh Tran
KeymasterHi Joseph,
You can try
unset( $field['fields'][$key] )instead of setting the$value = null. How did you run the function?Anh Tran
KeymasterHi Paul,
Thanks for your feedback. At the moment, the field
taxonomydoesn't use ajax to load terms. I'll check ACF and see if I can make the change.August 1, 2019 at 2:14 PM in reply to: ✅Getting post ID from inside the Meta Box Block render_callback #15539Anh Tran
KeymasterYes, that's right. The plugin uses ajax to render the block, and the post ID isn't passed to the block.
get_the_ID()probably will work only when viewing the post on the front end.Just curious, why do you need the post ID?
Anh Tran
KeymasterHi,
You can use
custom_htmlfield to add information, and add some CSS to hide the submit button. -
AuthorPosts