Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Currently, we have not supported creating a new term with term meta on the frontend. If you want to create a new term when creating a new post, please use the field type
taxonomyortaxonomy_advanced, setting'add_new' => trueGet more details on this documentation
https://docs.metabox.io/fields/taxonomy/#settings
https://docs.metabox.io/fields/taxonomy-advanced/#settingsLong Nguyen
ModeratorHi,
Thank you for reaching out.
The default permalink structure of a CPT as your expectation
http://your-site.com/cpt-slug/post-title-slugThe option
Custom rewrite slughelps you to change the CPT slug to another one like thishttp://your-site.com/custom-slug/post-title-slugRemember to re-save the permalink settings after changing the post type settings.
Long Nguyen
ModeratorHi,
I have not used the membership plugin type like that but you can try to use Members or User Role Editor plugin to limit access for user roles.
https://wordpress.org/plugins/members/
https://wordpress.org/plugins/user-role-editor/April 16, 2021 at 8:58 PM in reply to: ✅Youtube link in post.content doesn't render in a MB view #27321Long Nguyen
ModeratorYou can use the block Custom HTML and insert the embedded code of Youtube when editing the content. Screenshot https://share.getcloudapp.com/4gu2nAXY
Long Nguyen
ModeratorThanks for your feedback. I've added this feature request to the backlog development.
Long Nguyen
ModeratorHi Jeff,
Thank you for reaching out.
If you use the Builder to create the group, please set the group title, screenshot https://share.getcloudapp.com/6qu88g14
Or use the settings
group_titleby coding https://docs.metabox.io/extensions/meta-box-group/#settingsLong Nguyen
ModeratorHi,
Thank you for reaching out.
Meta Box has not supported to auto-fill a field value base on another field value. You can use some jQuery code to achieve this goal. Get more information here https://stackoverflow.com/questions/44193272/autofill-a-text-form-value-after-select-an-option-form
Long Nguyen
ModeratorHi Henri,
You just need only the variable without wrap it in the curly bracket or single quote in the
ifstatement.{% if post.online_evenement != 1 %}Get more details here https://twig.symfony.com/doc/3.x/tags/if.html
Refer to this topic https://support.metabox.io/topic/getting-return-values-from-php-functions-in-views/
April 16, 2021 at 11:31 AM in reply to: ✅Youtube link in post.content doesn't render in a MB view #27306Long Nguyen
ModeratorHi,
It's the normal behavior because the data is saved in the database is the raw value like this
<!-- wp:embed {"url":"https://www.youtube.com/watch?v=cClgQ9kGfAQ","type":"video","providerNameSlug":"youtube","responsive":true,"className":"wp-embed-aspect-16-9 wp-has-aspect-ratio"} --> <figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper"> <code>https://www.youtube.com/watch?v=cClgQ9kGfAQ</code> </div></figure> <!-- /wp:embed -->then Block editor support showing the video on the frontend, but the MB Views only support to show the raw value. You can change to the embed code
<iframe>to show the Youtube video via MB Views.Long Nguyen
ModeratorHi,
The columns Title has the ID
title, it should be'admin_columns' => [ 'position' => 'before title', 'searchable' => true, ],The builder also suggests the default column IDs of the post
title,author,tag,categories...Long Nguyen
ModeratorHi Alexandre,
Thank you for reaching out.
Can you please share the code that creates the meta box, custom fields, and the shortcode to show the form on the front end? Some screenshots would be appreciated.
Long Nguyen
ModeratorHi,
The field type
image_selectrequires options to work, please follow this documentation https://docs.metabox.io/fields/image-select/Long Nguyen
ModeratorHi,
Thank you for reaching out.
Can you please share the code that creates the custom fields? Follow this documentation to generate PHP code https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code
You can also do the step Debugging Information to troubleshoot the issue https://support.metabox.io/topic/how-to-create-a-new-topic/
April 15, 2021 at 8:43 PM in reply to: ✅How to Autofill the Title of the cutstom post with the value of the 2 fields #27276Long Nguyen
ModeratorHi,
The code works well on my local site. Can you please share the code that creates the meta box and custom fields? I will help you to check it.
Long Nguyen
ModeratorHi Eddy,
You can use check if the helper function exists and run the code after the condition.
add_filter( 'get_avatar' , 'my_custom_avatar' , 1 , 5 ); function my_custom_avatar( $avatar, $id_or_email, $size, $default, $alt ) { if( !function_exists( 'rwmb_meta' ) ) return $avatar; $user = false; ... }see more here https://www.php.net/manual/en/function.function-exists.php
-
AuthorPosts