Forum Replies Created
-
AuthorPosts
-
March 18, 2023 at 6:23 PM in reply to: MB custom fields and WP Gridbuilder data issue on filter facet #41086
Peter
ModeratorHello,
I do not see the sample post ID
123is replaced when you use the code. According to your screen record, the post ID is424. Can you please try to use the code again?$number = rwmb_meta( 'price', '', 424 );Please check this screenshot https://monosnap.com/file/09JInc0QAK7R5gpdB4gNMSgZ1f3q0g
Peter
ModeratorHello,
What Meta Box does, in this case, is to support the UI to register the post type with the WordPress function
register_post_type()instead of using the code.
https://developer.wordpress.org/reference/functions/register_post_type/If you want to check the issue, you can register some CPTs with the code and with your plugins and with non-plugins activated on a staging site to see how it goes. It's not possible to check a conflict with any plugins on the internet and it is also beyond our scope of support of Meta Box which you can read more here https://support.metabox.io/topic/support-policy/
I hope that makes sense.
Peter
ModeratorHello,
The field
image_uploaddoes not work with the non-logged in users. Instead, please use the fieldimage, read more on the documentation https://docs.metabox.io/fields/image/March 18, 2023 at 5:38 PM in reply to: ✅[Bug]: Incorrect URL When Setting Parent Menu Of Settings Page To Custom Model #41083Peter
ModeratorHello,
Thanks for your feedback.
I can see the issue on my demo site and I've escalated this issue to the development team to fix it in the next update.
Peter
ModeratorHello,
I cannot give you the ETA but this feature is in the backlog development and the development team will work on it in future updates.
Thanks.
Peter
ModeratorHello,
Yes, the idea is to use the JS validation to validate the field without reloading the page. If the page is reloaded, the input value will be lost if it does not pass the backend validation.
March 17, 2023 at 10:26 PM in reply to: MB custom fields and WP Gridbuilder data issue on filter facet #41068Peter
ModeratorHello,
That code outputs the number formatted as well on my demo site. You can try to pass the post ID to the third parameter of the helper function.
$number = rwmb_meta( 'price', '', 123 );where 123 is the post ID. Please read more on the documentation https://docs.metabox.io/functions/rwmb-meta/
March 17, 2023 at 10:06 PM in reply to: ✅Excluding the current post in reciprocal relationships #41067Peter
ModeratorHello,
The setting
reciprocalof the relationship helps you to prevent connecting the current post to itself. Please read more on the documentation https://docs.metabox.io/extensions/mb-relationships/#relationship-settingsPeter
ModeratorHello Sam,
There is a trick to sort the posts by modified date. You can create a custom field date_picker and create an admin column to display this field value and sortable, then use the WordPress function
get_the_modified_date()to get the modified date and update this data for the field.This is the example code:
add_action( 'save_post', function( $post_id ) { $modified_date = get_the_modified_date( '', $post_id ); update_post_meta( $post_id, 'date_field', $modified_date ); } );You might need to check the post type or something else on your end. Please read more on the documentation
https://developer.wordpress.org/reference/functions/get_the_modified_date/
https://docs.metabox.io/extensions/mb-admin-columns/#3-advanced-configurationPeter
ModeratorHello Sam,
Let me answer your questions.
1. The post content revision is the standard feature of WordPress, it does not relate to Meta Box itself.
2. Yes, I see the issue on my end. I've escalated this to the development team to check this and get back to you later.
Peter
ModeratorHello,
The menu position works correctly on my local site. But it can be modified by any plugin or theme on your site which also use the WordPress hook to add its menu and can rearrange the position then.
You can try to deactivate all plugins and leave Meta Box, MB AIO activate and switch to a standard theme of WordPress then check this issue again.
You can also read more about the default menu structure number here https://developer.wordpress.org/reference/functions/add_menu_page/#menu-structure
Peter
ModeratorHello,
Yes, the update (every update of all plugins) will be included in the next update of the plugin Meta Box AIO. Hopefully, it will be available soon.
Peter
ModeratorHello,
I see the CSS selector does not have space between classes, I think you are missing the spaces to target the button class. Please try to use this selector and let me know how it goes.
job-sheet-featured-aspects .rwmb-form-submit .rwmb-button { display: none; }Peter
ModeratorHello,
How do you use the backend validation? Do you try to use the remote validation as I suggested before?
https://support.metabox.io/users/user_634689848e0c8/?swcfpc=1Or enable ajax for the frontend submission form to prevent reloading the page. Please read more on the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#submission-form
March 16, 2023 at 6:28 PM in reply to: Beaver Builder image gallery connection to Metabox field #41038Peter
ModeratorHello,
Our development team is working on this issue. If you are familiar with coding, you can try to apply this commit to your site and see how it goes.
https://github.com/wpmetabox/meta-box-beaver-themer-integrator/commit/9c23e2d816fa8acb511d762aa5567973c0351551 -
AuthorPosts