Forum Replies Created
-
AuthorPosts
-
March 8, 2022 at 12:53 PM in reply to: How do I populate a relationship value based on the related post they select #34388
Long Nguyen
ModeratorHi,
The relationship works like the field
post, maybe you are understanding the fieldpostis the related post. There are some differences between relationship and fieldpostbut the main is
- the fieldpostis a user meta that saves data in the tablewp_usermeta
- the relationship is a custom connection that saves data in the custom tablewp_relationshipsplease read more here
https://docs.metabox.io/fields/post/#data
https://docs.metabox.io/extensions/mb-relationships/#databaseYou can use the WP_Query to display the connected post with relationship, follow this documentation https://docs.metabox.io/extensions/mb-relationships/#users
March 8, 2022 at 12:43 PM in reply to: ✅Inline script does not fire inside render_template in the WP Block Editor #34387Long Nguyen
ModeratorHi,
It looks like WordPress does not support running the inline script when previewing block content (it works on the frontend). You should use the setting
enqueue_scriptto enqueue your script when registering the block. Read more on the documentation
https://docs.metabox.io/extensions/mb-blocks/#enqueue_scriptLong Nguyen
ModeratorHi,
For the field WYSIWYG, you can set the setting
rawtotrueto prevent data from being passed throughwpautop()on save. Or use custom sanitization to remove all HTML tags.Read more on the documentation
https://docs.metabox.io/fields/wysiwyg/#settings
https://docs.metabox.io/sanitization/March 8, 2022 at 12:12 PM in reply to: ✅Something is not right with the shortcode on page ID: #34385Long Nguyen
ModeratorHi,
The issue happens when the shortcode frontend submission
[mb_frontend_form post_fields="title,content"]is not included in the content of the page frontend submission (ID 50621). Can you please re-check this?Long Nguyen
ModeratorHi Tyler,
Currently, we do not support upgrading a license to a higher one. In 14 days from the purchase day, you can purchase a new license and ask for a refund of the old license but you've used it for 3 months so there is no way to help, unfortunately.
March 8, 2022 at 11:21 AM in reply to: ✅Displaying 2 custom post types via a relationship custom post type #34381Long Nguyen
ModeratorHi Timo,
Yes, it is possible. Please refer to this topic to traversing connected posts in View
https://support.metabox.io/topic/traversing-multiple-related-cpts/Long Nguyen
ModeratorHi Mike,
It's the ID of the page that you add the frontend submission shortcode, see this screenshot https://monosnap.com/file/a0ygu7sSENxClXytfmdqaoq1sMxjk9
Long Nguyen
ModeratorHi Gunther,
It is working now. Can you please share the code that create the fields on your site?
March 7, 2022 at 5:34 PM in reply to: ✅Checkbox not checking when clicking checked by default #34362Long Nguyen
ModeratorHi,
I do not see that issue on my end. Can you please share some screenshots and the code that create the custom fields on your site?
March 7, 2022 at 5:16 PM in reply to: How do I populate a relationship value based on the related post they select #34360Long Nguyen
ModeratorHi,
- You can add more meta box (field group) IDs to the frontend submission form instead of using more frontend submission forms.
- I don't understand this case. Do you mean to create a relationship between a user and a post based on the
postfield? Or create a relationship between a user and the current viewing post? Some screenshots would be appreciated.
[mb_frontend_form id="{$relationship_id_AB}_relationships_from,meta-box-ID1,meta-box-ID2" post_fields="title,content" post_type="B"]March 7, 2022 at 4:31 PM in reply to: ✅Adding a custom field as a link to an elementor button #34356Long Nguyen
ModeratorHi,
I'm not sure if Elementor can render the shortcode in its form field. But you can add a full HTML code to link to the email address. Like this
add_shortcode( 'make_a_mailto_email_link', function() { $author_id = get_post_field( 'post_author', get_queried_object_id() ); $user_email = rwmb_meta( 'user_email', ['object_type' => 'user'], $author_id ); $output = '<a href="mailto:' . $user_email . '">' . $user_email .'</a>'; return $output; } );March 7, 2022 at 4:04 PM in reply to: Get current field label when in a Meta Box field group (Twig) #34355Long Nguyen
ModeratorHi Mike,
Is that the label of a select field (value => Label)? You can access it via the label property like this
{{ post.group.select.label }}Or do you mean the field name?
[ 'name' => __( 'Select', 'your-text-domain' ), // here 'id' => $prefix . 'select', 'type' => 'select', 'options' => [ 'a' => __( 'A', 'your-text-domain' ), 'b' => __( 'B', 'your-text-domain' ), 'c' => __( 'C', 'your-text-domain' ), ], ],Long Nguyen
ModeratorHi Cees,
-
Do you mean the number of views? There is no limit, it is a post type
mb-viewsand works as a post when saving data. -
I'm not sure it is the best way for your case but it is another way to include the View shortcode to a builder to show the data. To add it to the builder, please use the Type: Shortcode when creating the view.
Long Nguyen
ModeratorHi,
If you do not use the second parameter (args) of the helper function, please leave it blank and pass the post ID as the third parameter.
$stripeUrl = rwmb_meta( 'stripeUrl', '', $prodotto );Read more on this documentation https://docs.metabox.io/rwmb-meta/
Long Nguyen
ModeratorHi Becky,
You can try to remove the sanitization of the field WYSIWYG and use the field ID
post_contentto show the post content in the field area. Refer to the documentations
https://docs.metabox.io/sanitization/
https://docs.metabox.io/extensions/mb-frontend-submission/#reorder-post-fields -
AuthorPosts