Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
The type of user_pass column in the table
wp_usersis varchar 255 so I think WordPress doesn't limit the password to 20 characters. I also don't see that issue on my demo site or on your site, screenshot https://imgur.com/4KC3R4XMarch 15, 2024 at 8:58 PM in reply to: Display the same post multiple times based on custom fields group #44873Peter
ModeratorHello Eugene,
I think you can use the WP Query to query posts with the custom field parameter, please follow the documentation https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters
Note: It's difficult to query posts based on the subfield value in a group field. The purpose of the group field is to store data, not for query. Following this article https://metabox.io/create-group-of-custom-fields-with-meta-box-group/#how-does-the-meta-box-group-save-data
March 15, 2024 at 8:50 PM in reply to: How to plan or create the custom post type structure for my need #44872Peter
ModeratorHello Raju,
The first thing, this site https://meritnotes.com/ is not built with WordPress. If you want to have the same structure, you need to understand the post type, taxonomy and custom field of WordPress.
The plugin MB Custom Post Type helps you to create the post types and taxonomies with UI instead of using the code register_post_type(), register_taxonomy().
In general, it is possible to have the same structure with WordPress and Meta Box. However, you will need to use a lot of custom code to show that structure. I recommend using a built-in plugin like Learn Press or LearnDash to use their features to have a learning system like that.
March 15, 2024 at 8:27 PM in reply to: ✅Get Fields from Records in a Reciprocal Relationship of a Related Post #44869Peter
ModeratorHello,
You are using the custom query, so you need to add the parameter manually. The fields in the Insert fields area only work with the main query. Please read more about the custom query and main query in the documentation
https://docs.metabox.io/extensions/mb-views/#insert-fields
https://docs.metabox.io/extensions/mb-views/#main-query
https://docs.metabox.io/extensions/mb-views/#custom-queryPeter
ModeratorHello Michal,
You can try to follow this tutorial to increase the PHP setting
max_input_varsto fix the issue
https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/Let me know how it goes.
March 14, 2024 at 9:55 PM in reply to: ✅mbct_before_update - want to identify if a field has changed #44858Peter
ModeratorHello,
I've escalated this case to the development team. We will consider using cache when getting field value from the custom table with the function rwmb_meta() only and the rest will be queried directly from database.
Thank you.
Peter
ModeratorHello,
Please contact us here https://metabox.io/contact/, our team will help you upgrade your plan. And please share your site credentials also via the contact form. I will create a demo block on your site to show you how it works.
Peter
ModeratorHello Nick,
It isn't possible to reset the new form after submitting it. The form will be removed and you need to reload the page to get a new form.
March 14, 2024 at 8:38 PM in reply to: Dynamically populating options values for select2 doesn't save to database #44854Peter
ModeratorHello,
The problem is the select/select advanced field only saves value from options when you register the field. It doesn't save the value that is populated by JavaScript code. For example:
[ 'name' => 'Select Advanced', 'id' => 'select_advanced', 'type' => 'select_advanced', 'options' => tatasons_list(), ],Please follow the documentation https://docs.metabox.io/fields/select-advanced/
Peter
ModeratorHello,
The begin HTML is not duplicated, the field wrapper will be duplicated. You can use the Inspect tool of the browser to check the HTML structure, screenshot https://imgur.com/LvoxdxO
I'm not sure if there is a way to also know which numbered clone it is targeting, you can try to use the JS code and append your prefix HTML.
Peter
ModeratorHello,
To use the MB Blocks, you should have a basic knowledge of coding to create the template and output the field value.
I recommend you follow the documentation from the beginning to the end to understand how to create a custom block with code.The setting page in the video is in the builder, screenshot https://imgur.com/5Vayq3W
and you can follow the documentation to use the builder https://docs.metabox.io/extensions/meta-box-builder/If it is the first time you use Meta Box and its extension plugins, please read the whole documentation to understand how it works https://docs.metabox.io/category/getting-started/
If you don't have the coding level, we offer a customization service to customize your site for your needs with an extra fee.
March 13, 2024 at 10:35 PM in reply to: ✅Get Fields from Records in a Reciprocal Relationship of a Related Post #44840Peter
ModeratorHello,
This happens because you are in the
software_reciprocalloop but output thesoftwarepost title. I fix that issue with this code{{ software_reciprocal.post_title }}{% set args = { post_type: 'alternative' } %} {% set alternatives = mb.get_posts ( args ) %} {% for alternative in alternatives %} {# {{ alternative.post_title }} #} <h2>Alternative: {{ alternative.post_title }}</h2> {% set software_args = { post_type: 'software', relationship: {id: 'software-cpt-and-software-alternatives-cpt', to: alternative.ID} } %} {% set softwares = mb.get_posts ( software_args ) %} {% for software in softwares %} <h3>Software: {{ software.post_title }}</h3> {# {{ software.post_title }} #} {% set software_reciprocal_args = { post_type: 'software', relationship: {id: 'software-cpt-reciprocal-relationship', from:software.ID} } %} {% set software_reciprocals = mb.get_posts ( software_reciprocal_args ) %} {% for software_reciprocal in software_reciprocals %} <h4>Software_reciprocal: {{ software_reciprocal.post_title }}</h4> {% endfor %} {% endfor %} {% endfor %}Peter
ModeratorHello Nick,
Yes, it supports all fields, cloneable or non-cloneable.
March 13, 2024 at 9:52 PM in reply to: Custom tables with revisions enabled - mbct_before_add fires for the revision #44836Peter
ModeratorHello Benjamin,
A revision actually is a new post, post type revision. If you use those hooks, you can compare two variables:
- $row['ID']: the revision post ID
- $_POST['ID']: the current post ID
to "distinguish between adding a record and modifying an existing one".March 13, 2024 at 9:34 PM in reply to: Create A Relationship Between CPT And Comments (WooCommerce Reviews) #44835Peter
ModeratorHello Zakir,
It is possible. You can follow the documentation below to get the related products to the educator
https://docs.metabox.io/extensions/mb-relationships/#getting-connected-itemsthen get the reviews by the product ID
https://stackoverflow.com/questions/65708765/woocommerce-get-reviews-from-products-in-array-and-sort-them-by-stars -
AuthorPosts