Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello Yasmine,
It is the auto-guessing redirect feature of WordPress, it will redirect you to a similar post if you type something to the URL. Please follow the article below to get more information and disable it
https://typerocket.com/disable-wordpress-automatic-or-random-redirect-guessing-of-404s/
https://stackoverflow.com/questions/64061145/how-to-stop-wordpress-from-automatically-doing-a-redirectIt's not a Meta Box issue so I will close this ticket.
Peter
ModeratorHello,
In the new Meta Box version 5.9.11, the default step minute is set to 5. You can use the
js_optionsand set the step minute to 1. Following the documentation
https://docs.metabox.io/fields/datetime/
and this screenshot https://imgur.com/kMMaQXYPeter
ModeratorHello Sinisa,
First thing, please understand that Meta Box Custom Post Types helps you create a custom post type with UI, instead of coding as in the WordPress documentation https://developer.wordpress.org/reference/functions/register_post_type/
Second thing, WordPress itself doesn't have an option to add the taxonomy slug to the post URL (permalink). You can follow the topic below to use the code to add the taxonomy slug to the post URL.
https://stackoverflow.com/questions/57765487/how-to-add-custom-taxonomy-in-custom-post-type-permalinkJuly 16, 2024 at 11:11 PM in reply to: Issue with Elementor grid loop in archive template when query is Current Query #45914Peter
ModeratorHello,
When creating or editing the custom post type, you can go to the Taxonomies tab and unset the Category taxonomy. Here is the screenshot https://imgur.com/MSw5Zt1
Peter
ModeratorHello Michele,
Can you share a screen record of the issue on your site? I test to create a block with the same WYSIWYG fields but don't see that. Here is the screenshot of the block setting in the admin area
https://imgur.com/dQA5VyxPeter
ModeratorHello Harry,
Do you try to add more value to the setting max_input_vars? For example: 100-500k?
Peter
ModeratorHello,
Can you share the code that creates the group field? You should add the subfield ID to the remote validation. Here is an example:
add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' ); function your_prefix_function_name( $meta_boxes ) { $meta_boxes[] = [ 'title' => __( 'My Post Meta1', 'your-text-domain' ), 'id' => 'my-post-meta1', 'fields' => [ [ 'name' => __( 'Group', 'your-text-domain' ), 'id' => 'group', 'type' => 'group', 'fields' => [ [ 'name' => __( 'Text', 'your-text-domain' ), 'id' => 'text', 'type' => 'text', ], ], ], ], 'validation' => [ 'rules' => [ 'text' => [ 'remote' => admin_url( 'admin-ajax.php?action=my_action1' ) ] ], 'messages' => [ 'text' => [ 'remote' => __( 'test remote validation', 'your-text-domain' ) ] ], ], ]; return $meta_boxes; } add_action( 'wp_ajax_my_action1', function () { if ( $_GET['text'] === 'something' ) { echo 'true'; // Valid } else { echo 'false'; // Invalid } die; } );July 15, 2024 at 9:35 PM in reply to: ✅Avoiding Custom Field Duplication Across Multiple CPTs in BricksBuilder #45904Peter
ModeratorIf you check the field ID and value in the database, table wp_postmeta, you can see the meta key is the same for posts in other post types. I think Bricks builder automatically adds the CPT slug to their variable. You can ask Bricks support to get more information.
Peter
ModeratorHello,
That is expected when there is no content to render, the text "Block rendered as empty." will be displayed. You should add some static content to the block template to replace the text.
July 14, 2024 at 12:01 AM in reply to: ✅Avoiding Custom Field Duplication Across Multiple CPTs in BricksBuilder #45897Peter
ModeratorHere is an example https://imgur.com/2XScFBN
create a field group with some specific fields and assign the field group to more CPTs.July 12, 2024 at 11:26 PM in reply to: Issue with Elementor grid loop in archive template when query is Current Query #45895Peter
ModeratorHello,
Yes, I check the source: Current query and understand the issue https://imgur.com/WAkJYY1
It happens when you share the taxonomy (Category) between CPTs. By default, category taxonomy is assigned to Post. But there is no post belonging to the Post CPT, there are some posts belong to Course and Product CPTs.
If you use the Current query source, then there is no post (Post CPT) displayed in the frontend. It should be an issue between Elementor and WordPress, Meta Box is not related in this case. You can deactivate Meta Box, create some CPTs with code and recheck this.
July 12, 2024 at 11:07 PM in reply to: Custom table should not try to delete cache if Objec_id is null #45894Peter
ModeratorHello Thomas,
Yes, the delete cache function will do nothing if the variable $object_id is null. You can take a look at this file /mb-custom-table/src/Cache.php line 59
public static function delete( ?int $object_id, string $table ) { if ( ! $object_id ) { return; } wp_cache_delete( $object_id, self::get_cache_group( $table ) ); }July 12, 2024 at 10:44 PM in reply to: How to set MetaTitle and MetaDescription for Custom Post Type Archive Page? #45893Peter
ModeratorHello Phillip,
we are wondering what can be done with MB Views?Yes, it can be done with MB Views. You can create a view template, type Action, hook to the action
wp_head, set the location archive page to show the meta tag in the header of the archive page.
Please check this screenshot https://imgur.com/koj7LPBPeter
ModeratorHello,
It's not for a security reason, just the limitation of a PHP setting and you will need to increase this to allow more input variables to be saved.
For the second question, it depends on your requirements. But I think you can use more field groups to manage the custom fields more easily.Peter
ModeratorHello Topher,
There isn't an option to add the placeholder to the pencil icon. I think you can set the block position to the sidebar, the block settings will display in the sidebar without the pencil icon.
-
AuthorPosts