Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi Fernando,
Which is the field type of the custom field? And how do you display the field value? You can use the field
wysiwygto render the shortcode inside the field content. Read more on the documentation
https://docs.metabox.io/fields/wysiwyg/
https://docs.metabox.io/shortcode/March 27, 2022 at 7:08 AM in reply to: How to show "Related Content" and "Next Previous buttons" #35325Long Nguyen
ModeratorHi,
You need to create the template for the post type to show related content or other elements on the single post type page. Refer to this documentation
https://developer.wordpress.org/themes/template-files-section/custom-post-type-template-files/Or use some page builders like Elementor, Beaver to create the template without coding.
https://elementor.com/blog/design-your-single-post-template/March 26, 2022 at 4:31 PM in reply to: Is is possible to hard code MB Views to use in a plugin? #35320Long Nguyen
ModeratorHi Kyle,
It is possible to include MB Views or other extensions in your custom plugin/theme. Please follow this case https://docs.metabox.io/extensions/composer/
Long Nguyen
ModeratorHi,
So we can see the CPT with archive page works as well on your site, the issue is only with Kadence block then you can try to contact their support to ask for help with this issue.
March 26, 2022 at 4:23 PM in reply to: Is there a way to force crop/resize the uploaded image to square say 512x512px? #35318Long Nguyen
ModeratorHi,
No, unfortunately. Meta Box image fields do not support cropping image size after uploading. You can register a custom image size and display the image with that thumbnail size.
Read more on the documentation https://developer.wordpress.org/reference/functions/add_image_size/Long Nguyen
ModeratorHi,
Yes, the snippet code is correct to replace the default user avatar with the custom field
image_upload.The field with setting
multipleis always set totruewill return an array of values, so you can use the functionreset()to get the first element of that array. Read more on the documentation
https://docs.metabox.io/fields/image-upload/#settingsLong Nguyen
ModeratorHi,
I've checked your site again with two scripts that you've added. But do not see the issue, I also made a screen record, check it here https://youtu.be/RmRO7Peas1U
There is one note, I've added the condition to check the post ID existed before creating the query, in the script Course Schedule.
if( $post_id ) { //here $course_args = array( 'post_type' => 'course', 'relationship' => array( 'id' => 'event-to-course-relationship', 'from' => $post_id, ), 'nopaging' => true, ); $course_query = new WP_Query($course_args); $course_post_id = array(); if ($course_query->have_posts()) { while ($course_query->have_posts()) { $course_query->the_post(); array_push($course_post_id, get_the_ID()); } } }Long Nguyen
ModeratorHi,
It is the issue that I've mentioned. Our developer has pushed a fixed for this issue, please find it here https://github.com/wpmetabox/meta-box/commit/1e38828ba6c4dc3c83240fdbc8f533bbd1b27a73
You can try to pull this branch to your staging site to re-check it.
March 26, 2022 at 3:02 PM in reply to: ✅Website (wordpress) slows down dramatically when I enable Metabox plugin #35314Long Nguyen
ModeratorHi,
Website is loading slowdown can be caused by many potential issues, not only from Meta Box. You can try to deactivate all plugins except Meta box and switch to the standard theme of WordPress then re-check this issue. Using the plugin Health Check to troubleshoot the issue on your side only (does not affect other users) https://wordpress.org/plugins/health-check/
You can also check the error log to see some useful information.
https://wordpress.org/support/article/debugging-in-wordpress/Long Nguyen
ModeratorHi,
It's not possible to hide the license key in the composer.json file. You can exclude this file from the release version.
March 25, 2022 at 8:22 PM in reply to: Problem displaying images, videos and date format in French #35297Long Nguyen
ModeratorHi,
If you want to display the date in the French language, you can use the WordPress function
date_i18n()
https://developer.wordpress.org/reference/functions/date_i18n/Please try to use this PHP code in the post template file
$value = rwmb_meta( 'date_debut' ); echo date_i18n( 'F j, Y', $value );Long Nguyen
ModeratorHi,
The validation works with the field type
wysiwyg, but works with the tab Text only. It does not work with the Visual tab.
https://docs.metabox.io/validation/Long Nguyen
ModeratorHi,
It might relate to this topic https://support.metabox.io/topic/custom-post-type-not-working/
Let me know if it works.Long Nguyen
ModeratorHi,
Please re-save the permalink settings (Post name) to flush the cache and re-check the post type.
Long Nguyen
ModeratorHi,
If you want to use the field
taxonomyon the editing page, please remove the standard taxonomy box of WordPress. Please edit the taxonomy then uncheck the option "Show on edit page" in the Advanced tab. Screenshot https://monosnap.com/file/jal9hQkBzSbjJ4Kc1Z4a66n9KzxWugRefer to this topic https://support.metabox.io/topic/custom-post-type-with-its-own-categories/#post-34500
-
AuthorPosts