Forum Replies Created
-
AuthorPosts
-
April 4, 2024 at 10:19 PM in reply to: ✅Fatal error: Uncaught TypeError: Unsupported operand types: string & int #45145
Peter
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.
Peter
ModeratorHello Saul,
I'm afraid that MB Frontend Submission doesn't support this case. You can set the post status Draft for the submitted post for the first time submitting. But after reviewing and publishing the post the status won't be changed to Draft again.
Peter
ModeratorHello,
I'm not sure how Bricks get the field information in their builder. You can contact Bricks support to get further assistance.
Refer to our support policy https://metabox.io/support/topic/support-policy/Peter
ModeratorHello,
Thanks for your feedback. I can see that issue and I've escalated it to the development team to update the new version of MB Views 1.12.7.
-
AuthorPosts