Forum Replies Created
-
AuthorPosts
-
December 16, 2024 at 9:42 PM in reply to: Taxonomy and Related CPT are not being copied when duplicating CPT using Polylan #47192
Peter
ModeratorHello Antoine,
Maybe the data is copied exactly to the post in the second language, but the data (post, term IDs) is in the first language so it won't display when you edit the post.
It would need to have some custom code from the Polylang side to adjust the ID after you click the Plus icon to translate the post.Peter
ModeratorHello Alan and Tom,
Thank you for your feedback. We already had a task in the backlog development to support an option to set the capability for the taxonomy. I will inform the development team to increase the priority of the task and include the feature in future updates.
Peter
ModeratorHello,
Thanks for the details. I see that issue on the demo site. I'm escalating the issue to the development team to take a look and get back to you later.
December 16, 2024 at 2:26 PM in reply to: field builder is generating fields and tabs when tab is requested #47188Peter
ModeratorHello Fabien,
Can you please share some screenshots of the field group and the editing page so I can understand the issue? Please notice that the tab field must be added to the field group as the first field to make it work. See this screenshot https://imgur.com/uBLrNyr
Peter
ModeratorHello Clint,
Currently, MB Elementor Integrator plugin doesn't support showing relationship data in the Elementor builder. You can try to use the relationship shortcode to see if it helps
https://docs.metabox.io/extensions/mb-relationships/#shortcodeI will inform the development team to consider supporting this feature in future updates.
Peter
ModeratorHello John,
Regarding the saved time of the
datetimefield, if you add your custom save field format (Y-m-d) for the date, you also need to add the custom format for the time. For exampleY-m-d h:i:s
Refer to the PHP documentation https://www.php.net/manual/en/function.date.phpIf it still doesn't work on your site, please share your site admin account by submitting this contact form https://metabox.io/contact/
I will take a look.Peter
ModeratorHello,
It requires login to view the frontend form on the page so I cannot check the field type on your site https://kambriaevans.com/intensive-directory-submissions/
If it is a
selectfield, you need to assign the field to its option value which is registered when you create the field, such asother,green,blue... and not the option label.Please follow the documentation https://docs.metabox.io/fields/select/
Peter
ModeratorHi,
Thank you for your feedback.
It is similar to this issue https://support.metabox.io/topic/issues-with-geocoding-address-field-map-field-in-groups/
the development is working to fix the issue with geolocation in a group field and you can try to apply the fix in the topic above to see if it works.Peter
ModeratorHello metafa,
I'm using this code to output the image URL subfield value in a group and it works properly on my demo site:
$image = RWMB_Image_Field::file_info( $my_image, ['size' => 'full'] ); $image_url = $image['url']; ?> <div style="background-image: url(<?php echo $image_url ?>)"></div>Can you please share the code that you use to register the block or export the field group to a JSON file and share it here? I will help you check the issue.
Following the documentation https://docs.metabox.io/extensions/meta-box-builder/#export--import
Peter
ModeratorHello,
After importing the field group to the demo site, I can add the value for the datetime field and save it as well, screenshot https://imgur.com/ecnXCkA
Please let me know if this happens:
1. with other fields.
2. without Bricks builder.
then you can try to increase the PHP settingmax_input_varsand see if it helps. Read more about the PHP setting in the documentation https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/December 11, 2024 at 8:38 PM in reply to: Front end form refreshes page even tho Ajax submession enabled #47166Peter
ModeratorHello Emma,
I test the frontend submission form of MB Frontend Submission on the demo site with the setting
ajax="true"but don't see that issue. It could be an issue with the custom form of Bricks builder.You can follow the documentation https://docs.metabox.io/extensions/mb-frontend-submission/
to use the MB frontend submission shortcode without using Bricks and check the issue again.Peter
ModeratorHello,
I see there are two issues in the code that you create to output the field value:
1. Missing the closing square bracket:
- current:
$image = RWMB_Image_Field::file_info( $image_id, [ 'size' => 'thumbnail' );- it should be:
$image = RWMB_Image_Field::file_info( $image_id, [ 'size' => 'thumbnail' ] );2. Missing the field prefix when accessing the subgroup and subfields, for example:
- current:
// Field image: $image_ids = $subgroup[ 'image' ] ?? [];- it should be:
// Field title: echo $subgroup[ 'ie-slider-title' ] ?? '';The correct code is:
$groups = rwmb_meta( 'ie-slider-sliders' ); foreach ( $groups as $group ) { // Field slider: $subgroups = $group[ 'ie-slider-slider' ] ?? ''; foreach ( $subgroups as $subgroup ) { // Field title: echo $subgroup[ 'ie-slider-title' ] ?? ''; // Field image: $image_ids = $subgroup[ 'ie-slider-image' ] ?? []; ?> <h3>Uploaded images</h3> <ul> <?php foreach ( $image_ids as $image_id ) : ?> <?php $image = RWMB_Image_Field::file_info( $image_id, [ 'size' => 'thumbnail' ] ); ?> <li><img src="<?php echo $image['url']; ?>"></li> <?php endforeach ?> </ul> <?php // Field caption: echo $subgroup[ 'ie-slider-caption' ] ?? ''; // Field description: $values = $subgroup[ 'ie-slider-description' ] ?? ''; foreach ( $values as $value ) : echo do_shortcode( wpautop( $value ) ); endforeach; } }Peter
ModeratorHello John,
Thank you for your feedback. I've tried to reproduce the issue but didn't see that. I can normally save the date-time field value on the local site. Can you please export the field group to a JSON file and share it here? I will import the field group to my site and check the issue.
Following the documentation https://docs.metabox.io/extensions/meta-box-builder/#export--importPeter
ModeratorHere you go https://docs.metabox.io/extensions/mb-blocks/#using-mb-views
Notice the sample code:<div {{ mb.get_block_wrapper_attributes() }}> <img class="testimonial__image" src="{{ attributes.image.full_url }}"> <div class="testimonial__body"> <div class="testimonial__content" style="min-height: 50px;"> <InnerBlocks /> </div> <div class="testimonial__author">{{ attributes.name }}</div> </div> </div>Peter
ModeratorHello Niki,
Simply, you can create a field group and some custom fields, assign it to the product post type. After adding value to the field when editing the product post in the admin area, you can follow the documentation to output the field value in the frontend, just like other fields.
https://docs.metabox.io/custom-fields/ -
AuthorPosts