Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
The relationship API is easy and clear to use but you need to have some knowledge of PHP and WordPress coding. If you want to do a customization job with an extra fee, you can contact our development team here https://metabox.io/contact/
And refer to some topics to know how to use the API
https://support.metabox.io/topic/autopopulating-relationships
https://support.metabox.io/topic/update-an-existing-or-create-new-relationship-based-upon-custom-field-value
https://support.metabox.io/topic/connecting-child-posts-to-a-parent-post-automatically/Peter
ModeratorIt could be a Javascript conflicting issue between Meta Box and that plugin, I'm not sure why it does not work but simply you can deactivate that plugin to make the image field works properly.
Peter
ModeratorHello there,
You can follow this topic https://support.metabox.io/topic/post-statuses-other-than-published
to use thequery_argsand show the posts withpost_statusargument.November 7, 2022 at 10:57 PM in reply to: ✅Possible to template_lock MB Block and still allow other blocks to be added? #38989Peter
ModeratorThanks for sharing the info.
The attribute
lockdoes not look supported when registering the custom block. I will inform the development team to consider supporting this feature in future updates.November 7, 2022 at 10:50 PM in reply to: ✅error - MetaBoxFavoritePostsget_current_screen() - settings.php 11 #38988Peter
ModeratorHello,
Can you please reinstall this plugin and recheck the issue? And share the server info by going to admin area > Tools > Site Health > Info tab > Server.
November 7, 2022 at 10:40 PM in reply to: ✅Passing a variable value to a hidden field in Frontend Form Submission #38987Peter
ModeratorHello Denise,
When registering the meta box and custom fields, you can get the user name with your code and set the default value with the name. For example:
add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) { // your code to get the current user name here $user_name = 'Default user name'; $meta_boxes[] = [ ... 'fields' => [ [ 'name' => 'User Name', 'id' => 'user_name', 'type' => 'text', 'std' => $user_name ], ], ]; return $meta_boxes; } );Read more on the documentation https://docs.metabox.io/creating-fields-with-code/#field-settings
Peter
ModeratorHello there,
@Shemzone: can you please add the code to a template file of a theme and recheck the issue? I think there is a compatibility issue when executing the code in the Bricks builder.
@Dan: please create another topic and post your issue there. Make sure that you have the latest version of all extensions on your site. If you are using Google Map field, the issue mostly relates to the validity of your API key.
Peter
ModeratorHello Bilal,
Please contact us here https://metabox.io/contact/
our team will help you to process the request.Peter
ModeratorThere is no issue when I test to create a new user from the registration form on your site. So let's check this again and let me know if the issue still happens.
Peter
ModeratorHello Stefan
It is not possible to replace the featured image of the post if you save the custom field value to the custom table. Because the featured image of the post has the ID
_thumbnail_idand save value to the default table of WordPresswp_postmeta.You can save the field value to the default table instead of the custom table and see if it works.
Peter
ModeratorHello spip,
When registering a custom post type, you can enable the option Hierarchical to make the post hierarchically and set a post as a child of another post like that. Please read more here register_post_type
For connecting two posts of two post types, you can use the extension MB Relationships. (Coaching - Organisational
Regarding the post slug or URL, you also need to use a custom code to customize the slug on your own but it would need to have more complicated code. You can also read more here https://wordpress.stackexchange.com/questions/41988/redeclare-change-slug-of-a-plugins-custom-post-type
November 6, 2022 at 10:40 AM in reply to: iOS media browser scrolls to top of page when closing #38965Peter
ModeratorHello Glen
Unfortunately, our development team has taken a look at this issue but still not had a solution to resolve this. So I will leave this topic as Open status if there are others here who will chime in with better answers and can advise us to help you. Sorry for not being helpful in this case.
Peter
ModeratorYou can use this PHP code to get the post ID and create a condition to check it before removing the editor.
$post_id = null; if ( isset( $_GET['post'] ) ) { $post_id = intval( $_GET['post'] ); } elseif ( isset( $_POST['post_ID'] ) ) { $post_id = intval( $_POST['post_ID'] ); }the correct code will look like
// Remove the editor for a specific post. Change 'post' to your custom post type. add_action( 'init', function () { $post_id = null; if ( isset( $_GET['post'] ) ) { $post_id = intval( $_GET['post'] ); } elseif ( isset( $_POST['post_ID'] ) ) { $post_id = intval( $_POST['post_ID'] ); } if( $post_id == 1 ) { remove_post_type_support( 'post', 'editor' ); } } );Peter
ModeratorHello there,
If it is possible, please share the code that registered the field group with ID
campos-usuario. Or share your site credentials by submitting a ticket on this contact form https://metabox.io/contact/.Peter
ModeratorYou can check the relationship ID and
from,toside when you create the relationship. Please share some screenshots of the relationship, I will help you to find them. -
AuthorPosts