Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello Yasmine,
Is the field
partnership_summaryorselect_partnershown/hidden by another conditional logic? Please ensure they are visible on the same page/tab with the fieldcontrol_partner_visibilityand not affected by another conditional logic then check the issue again.Peter
ModeratorHello,
It isn't possible to use one frontend shortcode to edit the current post and create new one. You can try to use two frontend shortcodes:
- On the post template: use the attributepost_id="current"to edit the current post.
- On the separate page: remove that attribute to submit a new post.April 5, 2024 at 4:50 PM in reply to: How to target a specific index of cloned fields with Metabox Group #45151Peter
ModeratorHello,
What is the action/filter that you hook the callback function
output_to_cloneto? If you want to update the group field value, you can use the function update_post_meta()
Refer to this topic https://support.metabox.io/topic/add-cloneable-group-using-update_post_meta-whilst-preserving-existing-data/If you cannot complete the task, we offer a customization service with an extra fee. Please submit this form with your details, our development team will get back to you soon.
https://metabox.io/contact/April 4, 2024 at 10:19 PM in reply to: ✅Fatal error: Uncaught TypeError: Unsupported operand types: string & int #45145Peter
ModeratorHello,
According to the error message
Fatal error: Uncaught TypeError: Unsupported operand types: string & int in /home/xxxxx/public_html/wp-includes/class-wp-rewrite.php:1036this is the code in the file class-wp-rewrite.php line 1036
if ( EP_PAGES & $ep_mask || EP_PERMALINK & $ep_mask ) {it relates to the post type setting
ep_maskthat is not supported by MB CPT. Please try to delete the current CPT and re-create it manually with the same slug and settings and check the issue again.Following the documentation https://developer.wordpress.org/reference/functions/register_post_type/
Peter
ModeratorHello,
The code to display the cloneable map is similar to the subfield map in the group. Here is an example:
$maps = get_post_meta( get_queried_object_id(), 'osm_field_id', true ); $args = [ 'width' => '640px', 'height' => '480px', ]; foreach ( $maps as $map ) { echo RWMB_OSM_Field::render_map( $map, $args ); }Peter
ModeratorHello Saul,
Currently, there isn't a filter hook to modify the attribute of the frontend shortcode. It could be a nice feature request. I will inform the development team to consider supporting a filter hook to modify the frontend shortcode attributes.
Peter
ModeratorHello,
Please check two points:
1. The field setting
save_fieldis not set tofalse.2. Increase the PHP setting
max_input_vars, please follow the documentation https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/If it doesn't help, please share your plugin here and let me know where to check the field settings.
Peter
ModeratorCan you please share a screen record of the issue on your end? You can upload the video to Google Drive and share the URL here.
Peter
ModeratorIn the builder, you can use the setting Max items in the field settings tab, screenshot https://imgur.com/isiuiHQ
If you use the code, it is the setting
max_clone. Please follow the documentation
https://docs.metabox.io/extensions/mb-relationships/#using-codePeter
ModeratorHello,
I add a field
image_uploadto the field group, enable Required and see the validation works correctly when submitting the post without adding an image.Please try on a clean installation of WordPress and check this issue again.
Peter
ModeratorHello,
It's the HTML code, not PHP code and not an extension for the editor. You can type it directly from the keyboard.
<div class="abc-def">If you are not familiar with coding, I recommend you take some basic courses to understand and use Meta Box extensions https://www.w3schools.com/
Or hire an expert developer to help you do your project.
Peter
ModeratorHello,
When creating a new post, before publishing it, the post ID will not be created so the code to get the post ID doesn't work.
You can update the field value after publishing the post with the hook save_post.Peter
ModeratorHello,
1. You can add the image link directly to your reply.
2. Calling the PHP function in the View editor is noted in the documentation https://docs.metabox.io/extensions/mb-views/#running-php-functions
you can use the proxy
mb.to call it. Note: the PHP function should return a value to use in the View editor.Peter
ModeratorHello,
Following the documentation https://docs.metabox.io/fields/osm/#outputting-a-map-in-a-group
Please change the classRWMB_Map_FieldtoRWMB_OSM_Fieldand recheck this issueecho RWMB_OSM_Field::render_map( $group_value['osm'], $args );April 2, 2024 at 11:07 PM in reply to: ✅Bug: Changing field type to the 'group' crashes the UI #45118Peter
ModeratorHello Maxim,
Thanks for your feedback. I can reproduce the issue on my demo site. I've escalated this to the development team to fix the issue. I will let you know when it's done.
-
AuthorPosts