Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Thanks for your idea, this feature is not supported yet. I'm going to inform the developer team to consider adding it to the to-do list for the future development of the plugin.
Long Nguyen
ModeratorHi iulia,
Thank you for getting in touch.
I've tried to reproduce the issue on my end but no luck. Please try to reinstall these plugins:
- Meta Box 5.4.0
- MB Columns: 1.2.10
- MB Term Meta: 1.2.10and deactivate all other plugins then let me know how it goes.
May 31, 2021 at 11:05 AM in reply to: ✅Feature Request: Advanced location rules -> limit display to home/front-page #28549Long Nguyen
ModeratorHi Aaron,
Thank you for getting in touch.
If you use the Builder, you can navigate to the Settings tab > Advanced location rules > Select Custom and pass the custom function name to check if the page is frontpage (set in Settings > Reading) or not. For example:
function get_frontpage_id() { $post_id = null; if ( isset( $_GET['post'] ) ) { $post_id = intval( $_GET['post'] ); } elseif ( isset( $_POST['post_ID'] ) ) { $post_id = intval( $_POST['post_ID'] ); } return ( $post_id == get_option('page_on_front') ) ? true : false; }Screenshot https://share.getcloudapp.com/5zuYpLG2. Get more details on the documentation https://docs.metabox.io/extensions/meta-box-include-exclude/#settings
Long Nguyen
ModeratorHi,
Currently, it is not possible to add custom fields to Woo variable products settings with Meta Box. But thanks for the idea, I will inform the development team to consider adding it to the to-do list for future development of the plugin.
Long Nguyen
ModeratorHi Cees,
Please follow this article to know how to save a field
WYSIWYGvalue as post content https://docs.metabox.io/save-wysiwyg-content-post-content/Then you can change the field type
WYSIWYGtotextarea.Long Nguyen
ModeratorHi Jorge,
You can create a custom taxonomy and assign it to the CPT, no need to use the Category default of WordPress which is assigned to the Post.
Then use this plugin to create a custom permalink for the custom taxonomy https://wordpress.org/plugins/custom-post-type-permalinks/
May 30, 2021 at 3:41 PM in reply to: ✅Which Blocks or Block Libraries are capable to display metabox's Custom Fields? #28524Long Nguyen
ModeratorHi Sascha,
I've not used a block library like that before, but if they work with ACF and Toolset, they will work with (simple) custom fields from Meta Box. You can see how we can move custom fields from ACF to Meta Box here https://metabox.io/move-custom-post-type-custom-field-data-from-pods-to-meta-box/
Another way, you can use the shortcode to show a field value in the blocks https://docs.metabox.io/shortcode/
Long Nguyen
ModeratorHi,
There are two points in your code:
- The helper function rwmb_meta() need to add 3 arguments if you pass field ID and post ID.
$startdate1 = rwmb_meta( 'ci_event_start_date', '', $post_id ) ;- The function date() only accept to the second argument
$startdate1in the timestamp format. Please double-check this point.
Long Nguyen
ModeratorHi Joseph,
You can try to use this code in View
{% set post_meta = mb.get_post_custom( post.ID ) %} {{ mb.var_dump( post_meta ) }}Type: Singular, Location: Post, screenshot https://share.getcloudapp.com/YEuZlQAN
Long Nguyen
ModeratorHi Fabian,
Currently, it is not possible to add a relationship as a field in a metabox. But it's a good idea, I will inform the developer team to consider adding it to the to-do list for the future development of the plugin.
Long Nguyen
ModeratorHi,
The function get_post_field() get the post fields such as
post_type,post_status,post_content. You can see on the documentation https://developer.wordpress.org/reference/functions/get_post_field/To get the post meta (custom field), you can use the function get_post_meta() or helper function rwmb_meta()
Long Nguyen
ModeratorHi,
You can move custom fields from a field group (meta box) to another but have to keep the same field ID and settings page.
May 28, 2021 at 10:43 PM in reply to: ✅Custom Fields stored/mapped in custom table not available in Oxygen builder #28501Long Nguyen
ModeratorHi Prabakaran,
It looks like the Oxygen Builder does not support getting the field value from the custom table, just from the default table
wp_postmetaof WordPress. You need to create a View to use the shortcode or create a custom function to get the field value from the custom table.
https://docs.metabox.io/extensions/mb-custom-table/#getting-field-valueYou can also use the helper shortcode to show the field value in Oxygen Builder https://docs.metabox.io/shortcode/
Long Nguyen
ModeratorHi,
Please refer to this topic to print all custom fields related to a post ID https://support.metabox.io/topic/dump-all-available-custom-fields-from-mb-views/
Long Nguyen
ModeratorHi Ryan,
Thank you for your feedback.
I've escalated this case to the development team to fix it in the next update.
-
AuthorPosts