Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
So if I change the editor options in the first WYSIWYG, it does not apply to the second and third.
'fields' => [ [ 'name' => __( 'Wysiwyg', 'your-text-domain' ), 'id' => $prefix . 'wysiwyg_dbx2z2vqr55', 'type' => 'wysiwyg', 'tab' => 'tab_lyqm3d49c4i', 'options' => [ 'media_buttons' => false ] ], [ 'name' => __( 'Wysiwyg (Copy)', 'your-text-domain' ), 'id' => $prefix . 'wysiwyg_n7brzfaq6fr', 'type' => 'wysiwyg', 'columns' => 6, 'tab' => 'tab_er9wju7n55b', ], [ 'name' => __( 'Wysiwyg (Copy) (Copy)', 'your-text-domain' ), 'id' => $prefix . 'wysiwyg_zpyvkx3ygag', 'type' => 'wysiwyg', 'columns' => 6, 'tab' => 'tab_er9wju7n55b', ], ],didn't see the issue here, screen record https://share.getcloudapp.com/Jru4KzZb
Long Nguyen
ModeratorHi,
Follow your screenshots, I see the custom fields
event_nameandevent_datesave their value in the custom table and do not save in thepostmetatable. Everything is working fine.In the table
posts, the post title also update with theevent_namevalue, it is possible that you've added a custom code to update the post title by using custom field value. Please re-check it.In the table
postmeta, there are some meta keys default of WordPress such as_edit_lock,_edit_last, they are not encouraged to remove. You can deactivate the plugin RankMath and remove the custom field single_image to avoid saving their value in the database.Long Nguyen
ModeratorHi,
As my reply above, you need to create your own shortcode to return only the image URL. Or contact the plugin support to ask for modifying their shortcode. For the logo, I recommend using the field type
single_imageto get the image URL without using the loop.
https://docs.metabox.io/fields/single-image/#template-usageFor example
add_shortcode( 'single_image_url', function() { $single_image = rwmb_meta( 'single_image' ); //replace your field ID here if ( empty( $single_image ) ) { return ''; } $output = $single_image['full_url']; return $output; } );Then use the shortcode
[single_image_url]Long Nguyen
ModeratorHi Filipe,
Can you please share the code that creates meta box and custom fields for the post-type Product? I will check it on my end.
May 19, 2021 at 11:31 AM in reply to: ✅Relationship CPT Title not Displaying using MB View Shortcode #28285Long Nguyen
ModeratorHi,
Your code looks good except for one point, the function name should use the underscore (_) between words, no hyphen (-). See more here https://www.codementor.io/@veenitchauhan/basics-of-naming-conventions-for-php-developers-eliexmew6
add_action( 'mb_relationships_init', 'candidate_party' ); function candidate_party() {And if you want to use the View shortcode on other pages, please wrap the relationship PHP code in a function then call it via proxy
mb.in View.Long Nguyen
ModeratorHi Adrien,
Thank you for your feedback.
Can you please share the code that creates the tabs and field WYSIWYG? I will check it on my end.
Long Nguyen
ModeratorHi friends,
You can use the code to create a shortcode to show the subfield value inside Elementor, get more details on the documentation https://docs.metabox.io/extensions/meta-box-group/#outputing-group-with-page-builders
Long Nguyen
ModeratorHi Prabakaran,
Can you please clarify the question? What do you want to do with the URL of the image?
Long Nguyen
ModeratorHi Harry,
There is nothing wrong with your code. It might come from another issue. Please follow the step Debugging Information to troubleshoot the issue https://support.metabox.io/topic/how-to-create-a-new-topic/
If it does not work, please share your site credentials via this form https://metabox.io/contact/. I will help you to check it.
Long Nguyen
ModeratorHi,
JavaScript does not support parsing the shortcode and render it. You can follow this topic to know how to use JavaScript in PHP code to parse the shortcode.
https://stackoverflow.com/questions/47117329/adding-javascript-to-php-wordpressOr follow this article to show more address markers on a map https://metabox.io/display-all-listings-on-a-map/
Long Nguyen
ModeratorHi,
Thank you for your feedback.
I'm going to inform the developer team to check this case and get back to you later.
Long Nguyen
ModeratorHi Prabakaran,
For the default post, the code saves the field value in the custom table as well. For custom post types, please add the
post_typessettings when registering the meta box to save the field value of post types to the custom table.$meta_boxes[] = array( 'title' => 'Meta Box Title', 'storage_type' => 'custom_table', // Important 'table' => 'my_custom_table', // Your custom table name 'post_types' => 'post-type-slug' // Here ... )May 18, 2021 at 1:11 PM in reply to: ✅Oxygen/WYSIWYG, Images, Video fields output to Array not an image or video #28261Long Nguyen
ModeratorHi Anthony,
The shortcode does not work with the cloneable field. You can create your own shortcode to show the cloneable field value, follow this documentation https://docs.metabox.io/extensions/meta-box-group/#outputing-group-with-page-builders.
For simple field, the embedded video render as well https://share.getcloudapp.com/rRuG2xXY
Long Nguyen
ModeratorHi,
Thank you for reaching out.
I'm afraid that there is no shortcode to do that. I will inform the developer team to consider adding it to the to-do list for the future development of the plugin.
May 18, 2021 at 12:39 PM in reply to: ✅Columns extension creates rows (with bottom margins) for hidden fields #28259Long Nguyen
ModeratorHi Stephen,
Thank you for your feedback.
Each field is wrapped in a row (class rwmb-row) and it has a default margin-bottom (12px). Screenshot https://share.getcloudapp.com/RBuYGDRl
But it also adds the margin for the hidden fields (conditional logic). I will inform the development team to improve this case.
-
AuthorPosts