Forum Replies Created
-
AuthorPosts
-
September 17, 2020 at 10:42 AM in reply to: ✅Beaver Themer Integrator causes fatal PHP error, making website non-functional #21915
Long Nguyen
ModeratorHi,
The permalink of an eGallery post is https://www.minnetonkaps.org/egallery/test-gallery-123/. But the permalink is set to option Day and name, just change it to Post name to make it works. See screenshots:
https://share.getcloudapp.com/2NuyNvdL
https://share.getcloudapp.com/8LuPLpBOLong Nguyen
ModeratorHi Jon,
After sanitizing the field value, it is stored in the database as the formatted value (1.000.000) then you can use the extension Meta Box Elementor Integrator to show the field value (formatted) by Elementor.
If you use an input of Elementor itself, please follow this documentation to achieve the goal https://developers.elementor.com/elementor-controls/number-control/.
Long Nguyen
ModeratorHi,
Please follow this documentation to fix this issue https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/.
Refer: https://wordpress.org/support/topic/cant-make-groups-more-than-312/.
September 16, 2020 at 10:34 AM in reply to: ✅Beaver Themer Integrator causes fatal PHP error, making website non-functional #21898Long Nguyen
ModeratorHi,
I've logged in to Admin Dashboard and activated two plugins Meta Box and Meta Box AIO, then check the page FAQ but not see any issue. See screenshots:
https://share.getcloudapp.com/Apuk09Oz
https://share.getcloudapp.com/6quegYLXThe file php_error.log does not record any error like above. Could you please check the site again?
Long Nguyen
ModeratorHi,
The filter
rwmb_{$field_type}_valueorrwmb_{$field_id}_valuecan help you to sum old value and new value of a field type or field id. Add this sample code in the file functions.php or use Code Snippets.add_filter( 'rwmb_fieldID_value', function( $new, $field, $old ) { $new_value = $new + $old; return $new_value; }, 10, 3 );For more information, please follow the documentation https://docs.metabox.io/filters/#rwmb_field_type_value.
Long Nguyen
ModeratorHi,
As I said in this topic https://support.metabox.io/topic/how-to-show-all-posts-for-specific-taxonomy/page/2/#post-21633.
With the custom query, we have to use the variable of the WP_Post object. To get the post date, use
post.post_date. For more information, please follow the documentation https://developer.wordpress.org/reference/classes/wp_post/.September 15, 2020 at 3:27 PM in reply to: ✅Beaver Themer Integrator causes fatal PHP error, making website non-functional #21882Long Nguyen
ModeratorHi,
Please deactivate all other plugins, leave Meta Box, Meta Box AIO, Beaver Builder Plugin (Agency Version), Beaver Themer activate and switch to the default theme of WordPress (Twenty Twenty) then check the issue again.
Let me know how it goes.
Long Nguyen
ModeratorHi,
Two curly brackets
{{ display a value on the frontend }}is to display a value on the frontend. Please remove it{% if post.date > mb.strtotime('-1 day') %}.September 15, 2020 at 3:12 PM in reply to: ✅Remove accessibility carets on metaboxes after WordPress 5.5.0 updates #21879Long Nguyen
ModeratorHi,
WordPress version 5.5 supports to sort, drag & drop meta boxes in the Block Editor. You can use this custom CSS code to remove buttons (up and down).
.handle-order-higher, .handle-order-lower { display: none; }Apply the admin CSS code with this plugin https://wordpress.org/plugins/admin-css-mu/.
I'm going to create a feature request to support a setting of the meta box to remove sort buttons. Thank you.
Long Nguyen
ModeratorHi,
To run a PHP function in View, please use the proxy
mb. The code should be:mb.strtotime('-1 day')Long Nguyen
ModeratorHi,
You can use
$_POST['lead_to_activities']to get the submitted relationship value, it is an array of posts (pages) ID.Array ( [0] => 1925 [1] => 1841 )Loop through the array and use the function get_the_title() to get the post title by ID.
Long Nguyen
ModeratorHi Nick,
We can use the action hook
rwmb_frontend_after_processthen redirect to the new post by using the functionget_post_permalink().add_action( 'rwmb_frontend_after_process', function( $config, $post_id ) { wp_safe_redirect( get_post_permalink( $post_id ) ); die; }, 10, 2 );For more information, please follow documentations.
https://docs.metabox.io/extensions/mb-frontend-submission/#form-actions
https://developer.wordpress.org/reference/functions/get_post_permalink/Long Nguyen
ModeratorHi,
Of course, we can use operators to calculate the data (number) in View, like coding with PHP. Also, this article might help you to get the number of days between two dates https://stackoverflow.com/questions/30839618/how-to-get-days-difference-in-twig.
Long Nguyen
ModeratorHi,
We can use the field setting
stdto add the default value for thedatefield. Please add this sample code to the file functions.php in the theme folder or use Code Snippets.add_filter( 'rwmb_meta_boxes', function() { $date = new DateTime('+1 day'); // here $meta_boxes[] = array( 'title' => 'Meta Box Title', 'post_types' => ['post', 'page'], 'id' => 'meta-box-id', 'fields' => array( array( 'name' => 'Date picker', 'id' => 'field_id', 'type' => 'date', // Date picker options. See here http://api.jqueryui.com/datepicker 'js_options' => array( 'dateFormat' => 'yy-mm-dd', 'showButtonPanel' => false, ), // Display inline? 'inline' => false, // Save value as timestamp? 'timestamp' => false, 'std' => $date->format('yy-m-d'), // // use the date format as js_options ), ), ); return $meta_boxes; } );For more information, please follow the documentation.
https://docs.metabox.io/field-settings/
https://docs.metabox.io/fields/date/Long Nguyen
ModeratorHi,
I'm not sure about your purpose or benefit when using one taxonomy for multiple post types. In this case, we have to use more PHP code to achieve the goal, where the MB View tool cannot cover. Can you consider to use one taxonomy for one post type? For easier to show posts by taxonomy and use the archive page.
-
AuthorPosts