Forum Replies Created
-
AuthorPosts
-
January 26, 2024 at 10:30 PM in reply to: ✅Unable to save in Bricks Builder after updating to 1.24.1 #44400
Peter
ModeratorHello Choi,
We are helping Bricks support to identify the issue. You can follow the topic below to get more information.
https://forum.bricksbuilder.io/t/wait-bricks-not-saving-when-metabox-aio-plugin-is-activated/19180If you find a way to fix the issue, please help us report that to Brick by adding your comment there.
Thank you.
January 25, 2024 at 10:20 PM in reply to: How to pre-populate MB relationship field from URL for add new post #44391Peter
ModeratorHello,
Because the relationship field is not a standard custom field so the filter hook
rwmb_{$field_id}_field_metadoes work with relationship.
I've already shared a workaround for your case by using JavaScript code https://support.metabox.io/topic/how-can-i-pre-populate-fields-in-new-frontend-submission/Peter
ModeratorHello,
If you change the CPT slug, then the single post URL is invalid. You can use the plugin Post Type Switcher to switch the post to the new CPT (new slug).
https://wordpress.org/plugins/post-type-switcher/Peter
ModeratorHello David,
MB Views uses Twig to write the code in the editor, it is the PHP template engine and is rendered when the page load. If you use Ajax to send JSON data to frontend, you have to use JavaScript to handle the data and make changes there.
You can read more about Ajax in this article https://www.smashingmagazine.com/2011/10/how-to-use-ajax-in-wordpress/Peter
ModeratorHello,
I think it is possible. You can use some PHP sort array functions to sort the array by key or value. Following some links below
https://www.w3schools.com/php/php_arrays_sort.asp
https://stackoverflow.com/questions/1673259/sort-array-by-value-alphabetically-phpPeter
ModeratorHello Melissa,
Please try to re-save the permalink setting (Post name), clear all caches and check this issue again. If it doesn't work, please edit that CPT and share some screenshots of the Advanced tab.
January 24, 2024 at 9:22 PM in reply to: ✅Add Dropdown select of saved data using functions.php #44378Peter
ModeratorHello,
If you use the simplified version
function populate_my_select_field() { return [ 'option1' => 'Option 1', 'option2' => 'Option 2', ]; }then the field still doesn't save value. Please check if the setting
Save field valueis enabled, screenshot https://imgur.com/rdIYYyyPeter
ModeratorHello,
You need to import the
osmfield value to the database in order to display the address. It should be lat,lng,zoom. Following the documentation https://docs.metabox.io/fields/osm/Peter
ModeratorHello Duffl,
In this case, you will need to use a custom code to rewrite the permalink. It is an issue with the conflict slug of WordPress rather than a Meta Box issue.
You can read more on some links below. If it doesn't help, I recommend using a different CPT slug to prevent this issue.
https://wordpress.stackexchange.com/questions/135146/resolve-a-custom-post-type-name-vs-page-permalink-conflict-same-slug
https://wordpress.org/support/topic/custom-post-type-and-page-same-slug/January 23, 2024 at 11:24 PM in reply to: How to add Custom fields only to certain categories? #44372Peter
ModeratorHello,
You can use the Advanced Location Rules (MB Include Exclude), however it supports loading a field group for a specific post based on the condition as in the documentation https://docs.metabox.io/extensions/meta-box-include-exclude/
not for a specific term as you mention. I will inform the development team to consider supporting this feature in future updates.Thanks.
January 23, 2024 at 10:56 PM in reply to: Remote validation for uniquenes - how to prevent when editing existing post? #44370Peter
ModeratorHello Phil,
1. Currently, there is an issue with the remote validation and I cannot check if the post ID will work in this case.
2. Yes, it may be a good approach. You can use that action hook and get the post ID via the global variable $_POST.
3. No, the custom validation message in the builder works properly.
Peter
ModeratorHello Skauer,
The relationship isn't a custom field, its data doesn't save to the default table
wp_postmeta, it is saved to a custom tablewp_mb_relationships.
To get and display the relation posts, you need to use the code, following the documentation https://docs.metabox.io/extensions/mb-relationships/January 20, 2024 at 10:38 PM in reply to: ✅MB jQuery Validation - Scroll To Highlight Error - WYSIWYG Issue #44357Peter
ModeratorHello,
Thanks for sharing the workaround. I've escalated the issue to the development team to improve the scrollable feature for this field in future updates.
January 20, 2024 at 2:00 PM in reply to: ✅Show the Frontend Custom User Profile Image - within MB Admin Columns #44356Peter
ModeratorHello,
Here is an example:
add_filter( 'rwmb_the_value', function( $output, $field, $args, $object_id ) { if( is_admin() && $field['id'] == 'file_upload_id') { $file_value = rwmb_meta( 'file_upload_id', $args, $object_id ); if( !empty( $file_value ) ) { $file_value = array_pop( $file_value ); $output = '<img src="'. $file_value['url'] .'" alt="File image" width="32" height="32">'; } } return $output; }, 11, 4 );Peter
ModeratorHello,
I'm asking the development team to check the compatibility with Polylang and we will create documentation for this plugin. Thank you.
-
AuthorPosts