Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi Kesit,
Can you please share the code that creates the custom table and custom fields? Please make sure that the column names match with the field ID as on the documentation https://docs.metabox.io/extensions/mb-custom-table/#creating-custom-tables
November 19, 2021 at 12:26 PM in reply to: Update content(date) in FIELD_B when FIELD_A is saved with changes #32037Long Nguyen
ModeratorHi,
I got the issue. It does not work on your site because the field
text_to_inputis registered and saved first. If you want to update the fieldtext_to_update, please drag and drop it above the fieldtext_to_input. Like this https://share.getcloudapp.com/d5u6JvQzLong Nguyen
ModeratorHi,
You can check the post ID in the URL if the users edit the post from the frontend dashboard. Here is the example code
add_filter( 'rwmb_frontend_redirect', function( $redirect, $config ) { // Get the post ID from the URL if the user edit the post from frontend dashboard $value = $_GET['rwmb_frontend_field_post_id']; if ( empty( $value ) ) { $redirect = 'https://yourdomain.com/custom-page/'; } return $redirect; }, 10, 2 );Long Nguyen
ModeratorHi,
For the optimization of the builder, we only support showing 10 items to select. You can type the post title to search and select.
November 18, 2021 at 10:19 PM in reply to: Update content(date) in FIELD_B when FIELD_A is saved with changes #32024Long Nguyen
ModeratorHi,
Please pass the parameters to the helper function in the correct order.
add_action( 'rwmb_district_tax_rate_after_save_field', function ( $null, $field, $new, $old, $object_id ) { rwmb_set_meta( $object_id, 'district_proposed_rate', $new ); }, 10, 5 );and the field
district_proposed_rateshould be a text field.November 18, 2021 at 9:29 PM in reply to: ✅Can I somehow exclude several dates and dates ranges in the datepicker field? #32022Long Nguyen
ModeratorHi,
For a range, you can use the JS options
minDateandmaxDate. Example[ 'name' => __( 'Date', 'your-text-domain' ), 'id' => $prefix . 'date_xabk9calx28', 'type' => 'date', 'js_options' => [ 'minDate' => -5, 'maxDate' => '+5D', ], ],For some specific dates, Meta Box does not support doing that. You can follow this article to do by using the code https://codehasbug.com/javascript/disable-specific-date-in-jquery-datepicker/
Long Nguyen
ModeratorHi,
In the builder, we support showing the post title instead of post ID to be easier to select without remembering the post ID. If you click on the button Get PHP Code, you can see post ID as well.
If you want to use other parameters to include/exclude the meta box, please use the code and following the documentation https://docs.metabox.io/extensions/meta-box-include-exclude/
November 18, 2021 at 12:54 PM in reply to: ✅Add FacetWP Template with Relationship data from Metabox #32010Long Nguyen
ModeratorHi,
The relationship posts do not look filtered by FacetWP. I will inform the development team to support this feature in future updates.
For now, you can try to add the query args to the Facet template, please get more details here https://docs.metabox.io/extensions/mb-relationships/#posts
November 18, 2021 at 11:06 AM in reply to: Update content(date) in FIELD_B when FIELD_A is saved with changes #32008Long Nguyen
ModeratorHi Kyle,
You can use the helper function
rwmb_set_meta()to set the value for a field. Or use the WordPress functionupdate_post_meta(). Please read more on the documentation
https://docs.metabox.io/rwmb-set-meta/
https://developer.wordpress.org/reference/functions/update_post_meta/Long Nguyen
ModeratorHi Daniel,
Currently, it is not possible to edit View via block editor. I will inform the development team to consider supporting this feature in future updates.
November 18, 2021 at 9:04 AM in reply to: ✅Gridbuilder compatibility with timestamp (datetime) field - Custom DB Table #32005Long Nguyen
ModeratorHi,
The data in the custom table is associated with the post/term/user via the column ID as you can see on the documentation https://docs.metabox.io/extensions/mb-custom-table/#notes
But GridBuilder or FacetWP might not support getting data from the custom table, you can send some screenshots of your custom table (in the database) to their support and ask for help showing data.Long Nguyen
ModeratorHi,
You can add custom fields for any registered post type with Meta Box, but you need to contact bbPress support to ask for outputting the field value on their end.
Long Nguyen
ModeratorHi,
You can change the posts per page for the default query in Admin dashboard > Settings > Reading > Blog pages show at most.
or use the custom query, please read more on the documentation https://docs.metabox.io/extensions/mb-views/#running-php-functions
Long Nguyen
ModeratorThanks for sharing your solution.
Long Nguyen
ModeratorHi Heave,
The page Level or Group of the plugin RCP works like a settings page, not a post type. Even you can use Meta Box to add more custom fields to that page, it might not be processed by RCP because the field is not created by itself. You need to contact RCP support to ask for adding more fields to their pages.
-
AuthorPosts