Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 901 through 915 (of 3,724 total)
  • Author
    Posts
  • PeterPeter
    Moderator

    Hello 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.

    in reply to: How t set capabilities for Taxonomies #47191
    PeterPeter
    Moderator

    Hello 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.

    in reply to: Background image doesn't render in Gutenberg #47190
    PeterPeter
    Moderator

    Hello,

    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.

    PeterPeter
    Moderator

    Hello 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

    in reply to: ℹ️Relationships in Elementor? #47186
    PeterPeter
    Moderator

    Hello 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/#shortcode

    I will inform the development team to consider supporting this feature in future updates.

    in reply to: Metabox Date/Time Field Not Saving #47185
    PeterPeter
    Moderator

    Hello John,

    Regarding the saved time of the datetime field, 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 example Y-m-d h:i:s
    Refer to the PHP documentation https://www.php.net/manual/en/function.date.php

    If 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.

    in reply to: Changing the value of an option on submission. #47184
    PeterPeter
    Moderator

    Hello,

    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 select field, you need to assign the field to its option value which is registered when you create the field, such as other, green, blue ... and not the option label.

    Please follow the documentation https://docs.metabox.io/fields/select/

    in reply to: OSM and Groups #47183
    PeterPeter
    Moderator

    Hi,

    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.

    in reply to: Background image doesn't render in Gutenberg #47182
    PeterPeter
    Moderator

    Hello 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

    in reply to: Metabox Date/Time Field Not Saving #47167
    PeterPeter
    Moderator

    Hello,

    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 setting max_input_vars and 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/

    PeterPeter
    Moderator

    Hello 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.

    in reply to: Upgrade to 5.10.4 breaks subgroups #47158
    PeterPeter
    Moderator

    Hello,

    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;	
    	}
    
    }
    in reply to: Metabox Date/Time Field Not Saving #47157
    PeterPeter
    Moderator

    Hello 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--import

    in reply to: Alignment doesn't works #47155
    PeterPeter
    Moderator

    Here 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>
    in reply to: How to: Adding FAQ on webshop product #47153
    PeterPeter
    Moderator

    Hello 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/

Viewing 15 posts - 901 through 915 (of 3,724 total)