Forum Replies Created
-
AuthorPosts
-
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.Peter
ModeratorHello Md Wasim,
I will take care of this topic from now. On the archive page, you can use the WordPress function get_queried_object_id() to get the term ID and pass it to the helper function
rwmb_meta()as you do above.$term_id = get_queried_object_id() $image_id = rwmb_meta( 'author_single_image', $args, $term_id );November 3, 2022 at 10:11 PM in reply to: ✅Possible to template_lock MB Block and still allow other blocks to be added? #38951Peter
ModeratorHello Jacob,
It looks like you want to add one instance of MB test block on a post/page and allow other blocks added. Please use the setting
supportswithmultipleset tofalse.'supports' => [ // Use the block just once per post multiple: false, ],Peter
ModeratorHello there,
It is not possible to render the frontend shortcode via AJAX call because the CSS and JS files will not be loaded along with the HTML code. Please use the shortcode on the page load only to make the shortcode render correctly.
November 3, 2022 at 9:24 PM in reply to: ✅MB Toolset Migration not working in "Post Reference" field #38949Peter
ModeratorHello Jason,
Thanks for following up.
The issue has been added to the development queue and our team will work on this in a short time. I will keep you updated on this issue.
Peter
ModeratorHello Jimimac,
A similar code works as well on my local site
$loop = new WP_Query( array( 'post_type' => 'page', 'posts_per_page' => 5, 'order' => 'ASC' ) ); while ( $loop->have_posts() ) : $loop->the_post(); echo the_title(); echo '<br/>'; $contacts = MB_Relationships_API::get_connected( [ 'id' => 'page-to-post', 'from' => get_the_ID(), ] ); foreach ( $contacts as $c ) { echo $c->post_title; } endwhile; wp_reset_postdata();so please recheck the relationship ID and the
fromside when registering the relationship on your site.Peter
ModeratorAfter a post is submitted successfully on the frontend, the custom field value is already saved to the custom table (if you choose to save the custom table), not waiting to approve. Then it is not possible to move the field value to the default table
wp_postmetabecause the field is registered to get the value from the custom table.Peter
ModeratorHello Chris,
You can use this PHP code to remove the editor if you want
// Remove the editor. Change 'post' to your custom post type. add_action( 'init', function () { remove_post_type_support( 'post', 'editor' ); } );Read more on the documentation https://docs.metabox.io/save-wysiwyg-content-post-content/
-
AuthorPosts