Forum Replies Created
-
AuthorPosts
-
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-starsPeter
ModeratorHello,
Can you please share the error message when updating the package via Composer? Please try to use this command to update Meta Box packages and let me know if it works.
rm -rf vendor && composer clear-cache && composer installFollowing the documentation https://docs.metabox.io/integration/#why-cant-i-update-with-composer
The 404 Not Found is normal. Composer doesn't use that URL directly to get the info about the packages.
March 13, 2024 at 9:16 PM in reply to: ✅mbct_before_update - want to identify if a field has changed #44833Peter
ModeratorHello Benjamin,
I checked the code and think you are correct. The data is saved to the cache before updating to the custom table so you will see
$row['status'] = $data['status']. Using the SQL query to get the current field value in the table is a good way.Peter
ModeratorHello Lambert,
You can go to My Account page > Manage license > View the site > Delete the current site and activate the license on a new site, screenshot https://imgur.com/d2Mnqt3
https://metabox.io/my-account/Peter
ModeratorHello Lambert,
Please follow the documentation below to create a custom block and insert it to the page content
https://docs.metabox.io/extensions/mb-blocks/#video-tutorialPeter
ModeratorHello Nick,
It isn't possible. When the URL has the parameter "rwmb_frontend_field_post_id", it will replace the attribute
post_idof the form shortcode.
You can check the functionpopulate_via_query_string()in the file /mb-frontend-submission/src/FormFactory.php to understand the workflow.March 12, 2024 at 9:58 PM in reply to: multiple front end forms on one page and url parameter queries #44820Peter
ModeratorHello Nick,
It isn't encouraged to use more frontend forms on a page some features might not work properly. You should use one frontend form/shortcode per page.
Related topics
https://support.metabox.io/topic/multiple-frontend-submission-forms-and-ids/
https://support.metabox.io/topic/multiple-forms-of-same-type-on-same-page/ -
AuthorPosts