Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
The relationship ID in the query args is wrong. This is the relationship settings:
function your_prefix_function_name() { MB_Relationships_API::register( [ 'id' => 'event-to-topic',this is the query args
{% set topic_args = { relationship: { id: 'relationship-team-to-topic', from: post.ID }, nopaging: true, post_type: 'topic' } %}it should be
event-to-topic, notrelationship-team-to-topic. Where do you get this IDrelationship-team-to-topic?Here is the updated query args
{% set topic_args = { relationship: { id: 'topic-to-team', to: post.ID }, nopaging: true, post_type: 'topic' } %} {% set event_args = { relationship: { id: 'event-to-topic', to: topic.ID }, nopaging: true, post_type: 'event' } %}Let me know if it helps.
February 14, 2025 at 11:20 PM in reply to: How to make centralized My Account page with Custom and WooCommerce Meta??? #47665Peter
ModeratorHello,
1. The lost password form is available in the login form. Please check this screenshot https://imgur.com/q8Wnp8Z
2. If you use the builder, the placeholder option is available when you edit a
textfield, see this https://imgur.com/aGNe6Ba
if you don't see this option, what is the field type that you are using?3. If you want to send the notification message, you can use the action hook
rwmb_profile_after_process
following the documentation https://docs.metabox.io/extensions/mb-user-profile/#rwmb_profile_after_processIf you use the plugin Meta Box AIO, you can find the confirmation email template in
/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-user-profile/templates/confirmation-email.php
https://imgur.com/aq5oxZJMeta Box supports a basic style and appearance for forms and emails. If you want to have pretty elements, you need to use custom code to style it.
4. Currently, Meta Box plugins don't support other capchas/anti-spam measures. There is a feature request to support hCaptcha in our backlog development and we will work on this for future updates.
5. You can use the custom attribute
patternto set up a validation for thepasswordfield. Please follow the documentation
https://docs.metabox.io/custom-attributes/
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/patternhowever, if you want to customize the
passwordfield of the MB User Profile, you need to create some custom code to override the settings of the field which is created in the code, not in the builder.6. Currently, there isn't an option to approve or decline a user register submission. I will inform the development team to consider supporting this feature in future updates.
7. Yes, it can work like that. You can create a field with the same ID, for example
billing_companyin a field group and add the field group ID to the user profile form so the user can update this field value in the frontend.Peter
ModeratorHello,
Can you please also share the settings of 2 relationships?
- Team to Topic (team-to-topic)
- Topic to Event (topic-to-event)I check this View code https://pastebin.com/f3WD9DXN
but don't see any issue when outputtingtopicandeventposts.February 14, 2025 at 9:57 PM in reply to: How to select one or multiple users as (co-)authors of a custom post type post #47662Peter
ModeratorHello,
There is no case smarter than another case. It just depends on your requirements when setting up your project
-userfield will be saved to the default WordPress tablewp_postmetaand works like a normal custom field.
-relationshipdata will be saved to a custom tablewp_mb_relationships. You need to use a custom query to get the data.
They are already noted in the documentation that I shared above.To output the data, you can add the code to the template file in the theme folder or use MB Views. For the advanced, you need to have knowledge about coding to create the code.
Peter
ModeratorHello Topher,
Do you use a multisite environment? If yes, please visit the network area and visit the page
settings.php?page=meta-box-updaterto add the license key.
If not, can you open the pagewp-admin/admin.php?page=meta-box-updatermanually?February 14, 2025 at 9:17 PM in reply to: How to customize appearance of front-end user submission form using Kadence #47660Peter
ModeratorHello,
Here is the sample CSS code to style the submit button
button.rwmb-button { width: 100%; }you can add it to the file
style.cssin the theme/child theme folder. See how it works https://imgur.com/rY2KIpMNote: we don't support customization code. If you are not able to complete it, we offer a customization service for an extra fee. Please contact us here https://metabox.io/contact/ for more details.
February 13, 2025 at 11:25 PM in reply to: Issue with saving field value when block has a number field #47652Peter
ModeratorHello Cedric,
Thanks for your feedback.
Can you please share the code that you use to register the custom block and output the block data? I'm not able to reproduce the issue on my site. If you are using the builder, you can follow the documentation to export the field group to a JSON file
https://docs.metabox.io/extensions/meta-box-builder/#export--importFebruary 13, 2025 at 11:15 PM in reply to: ✅File uploads in cloneable groups in not showing in Rest #47651Peter
ModeratorHello Marcus,
That is expected. The subfield value in a group saves only the raw value. It is the media file ID in this case.
So it doesn't return meaningful value like when you use the field as a top field (outside of a group field). I suggest you create a custom route and use the functionRWMB_File_Field::file_info( $image_id )to get the file info and send it via Rest API.Following the documentation https://docs.metabox.io/extensions/meta-box-group/#sub-field-values
Peter
ModeratorHello Julien,
Thank you for your feedback.
There is an issue with the block preview and I've escalated this to the development team to fix it. I will get back to you when I have more information.
February 12, 2025 at 11:12 PM in reply to: Custom Registration, Login, and Forgot Password forms with Meta Box #47645Peter
ModeratorHello John,
As I explained in this topic https://support.metabox.io/topic/how-to-make-centralized-my-account-page-with-custom-and-woocommerce-meta/
you can use the user profile forms to have some custom registration, login, register forms based on the field group and custom fields on your site. You can add the form shortcodes to any page and show the form in the frontend. Following the documentation https://docs.metabox.io/extensions/mb-user-profile/
February 12, 2025 at 11:07 PM in reply to: How to make centralized My Account page with Custom and WooCommerce Meta??? #47644Peter
ModeratorHello John,
You can use the extension plugin MB User Profile to add a user profile form to a page and show a form to edit the user meta fields that are created by Meta Box plugin.
Please follow the documentation https://docs.metabox.io/extensions/mb-user-profile/And it doesn't support including the WooCommerce user meta fields in the user profile form. They have a different way to register the user meta field.
February 12, 2025 at 10:03 PM in reply to: How to customize appearance of front-end user submission form using Kadence #47643Peter
ModeratorHello John,
The frontend form block doesn't support options to customize the form like the builder. If you want to change the style of the submit button or other elements, you can create some custom CSS code to change the style.
Thanks.
February 12, 2025 at 9:49 PM in reply to: How to select one or multiple users as (co-)authors of a custom post type post #47642Peter
ModeratorHello John,
You can use the
userfield or create a relationship between users and the post type to select more users per post. Then follow the documentation to output the user in the frontend with code.
https://docs.metabox.io/fields/user/
https://docs.metabox.io/extensions/mb-relationships/February 10, 2025 at 10:47 PM in reply to: ✅How to sort returned posts on CF day if selected posts are for CF month #47634Peter
ModeratorHello Eddy,
The parameter
meta_keydoesn't exist under the parameterorderbywhen you use the function get_users(). Following the WordPress documentation
https://developer.wordpress.org/reference/classes/wp_user_query/#order-orderby-parametersYou can try to use this query args
{% set args = { meta_query: [ { key: 'verjaardag_maand', value: '2', compare: '=' } ], meta_key: 'verjaardag_dag', orderby: 'meta_value_num', order: 'asc', posts_per_page: -1 } %} {% set users = mb.get_users(args) %}or ask about the user query args in the WordPress support forum https://wordpress.org/support/forum/how-to-and-troubleshooting/
Peter
ModeratorHello,
You can get the list of relationship IDs (type) from the table wp_mb_relationships. Please check this screenshot https://imgur.com/uU4tYMh
Then use some custom code to localize the data in the frontend and use that value. -
AuthorPosts