Forum Replies Created
-
AuthorPosts
-
April 16, 2022 at 6:41 PM in reply to: ✅Display custom taxonomy with posts having meta_key=xyz and meta_value=1 #35671
Long Nguyen
ModeratorHi,
I think you can create a custom query to query post with parameter custom fields, see here https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters
then get the term by post ID https://developer.wordpress.org/reference/functions/get_the_terms/
Long Nguyen
ModeratorHi,
Please follow this documentation to create a custom query https://docs.metabox.io/extensions/mb-views/#custom-query
you can pass the argument sort to the functionget_posts()to sort the posts.Long Nguyen
ModeratorHi Yasmine,
You can follow this topic to use the field
image_uploadto upload the user avatar.
https://support.metabox.io/topic/how-to-add-font-end-image-replace-for-avator/Just change a little bit of code to get the image URL https://docs.metabox.io/fields/image-upload/#template-usage
Long Nguyen
ModeratorHi,
Did the custom field ID on the new site as same as the old site? I think this code does not work
$metabox_field = get_post_meta("fecha_de_evento");There is no post ID passed to the function
get_post_meta(), please change it to$metabox_field = "fecha_de_evento";If you insert the code into the Oxygen builder, you can try to contact Oxygen support to ask for implementation of the code. Or add the code to the post template file (deactivate Oxygen) to check it works first.
Long Nguyen
ModeratorHi,
Yes, it's not possible to import ACF json to Meta Box. But you can install the plugin Meta Box and MB AIO on that site, and migrate the data to the Meta Box. Then export the field group from that site and import it to the new site.
Refer to this documentation https://docs.metabox.io/extensions/meta-box-builder/#export--import
Long Nguyen
ModeratorHi,
If you're going to import/export simple fields (like text, select, radio, checkbox, etc.), then you can use these plugins to do the job:
https://wordpress.org/plugins/wp-ultimate-csv-importer/
https://wordpress.org/plugins/wp-ultimate-exporter/For complex fields, we need to code for the integration for WP All Import/Export. We're still working on it.
April 15, 2022 at 1:00 PM in reply to: Frontend form: redirection parameter not working with external domains #35653Long Nguyen
ModeratorHi,
Thanks for your feedback.
I've escalated this issue to the development team to fix it in the next update. You can use the filter hook to customize the redirect URL, please follow this documentation
https://docs.metabox.io/extensions/mb-frontend-submission/#hooks-1Long Nguyen
ModeratorHi,
You can count the number of files then check in the loop if reach the last file and remove the separator. Just like
$files = rwmb_meta( 'planimetrie' ); $count = count( $files ); $i = 1; foreach ( $files as $file ) { if( $i < $count ) { ?> <a href="<?php echo $file['url']; ?>" target="_blank"><?php echo $file['name']; ?></a>, <?php } else { ?> <a href="<?php echo $file['url']; ?>" target="_blank"><?php echo $file['name']; ?></a> <?php } $i++; }Long Nguyen
ModeratorHi,
Please make sure that the plugin ACF is activated on your site, and check the extension activated by going to Meta Box > Extensions.
Long Nguyen
ModeratorHi,
It does not mean when you use the field group (meta box) ID, which is assigned to the user as user meta, in the frontend submission form. This meta box ID should be used in the user shortcodes like user profile, user registration ... You should use a field group ID assigned to the post type
universityto add to the frontend submission shortcode. Please read more here
https://docs.metabox.io/extensions/mb-user-profile/#edit-profile-form
https://docs.metabox.io/extensions/mb-frontend-submission/#advanced-form'title' => __( 'Profile', 'your-text-domain' ), 'id' => 'academic_profile', 'type' => 'user', //hereIf you want to set the connection between a user to a post selected (user meta) when editing the user profile, please use the action
rwmb_profile_after_save_user
https://docs.metabox.io/extensions/mb-user-profile/#user-actionsLong Nguyen
ModeratorHi Yasmine,
Can you please share the code that creates the meta box and custom fields added to the frontend form? And share the code that creates the relationship
university_to_user. I need to know which is post type submitted via the frontend form.Regarding your code, you should check the field group ID (meta box ID) with the variable
$config['id']instead of the field ID. Some screenshots of your case would be better to understand.Read more on the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#form-actions
Long Nguyen
ModeratorHi,
Currently, there is no option to hide the form after submitting a post and enabling Ajax. I will inform the development team to consider supporting this case in future updates.
Long Nguyen
ModeratorHi Stephen,
The remote validation is the Javascript with the callback PHP function like AJAX. It's not encouraged to modify the plugin source code directly, it will be overridden when updating the new version of the plugin.
Long Nguyen
ModeratorHi,
Thanks for your feedback.
I will inform the development team to consider supporting unescape characters in labels when using the
select_advancedfield type.Long Nguyen
ModeratorHi,
Thanks for the confirmation.
So we can see that there is no issue with the extension MB Custom Table when editing the post and saving field value to the custom table. The issue happens when working with the plugin WSForm so I think there is a problem with their integration plugin which is developed from WSForm.
-
AuthorPosts