Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Page or Post ID is acceptable. You need to pass the ID of the post which shows the frontend submission form to the frontend dashboard shortcode like the documentation.
https://docs.metabox.io/extensions/mb-frontend-submission/#user-posts-dashboardLong Nguyen
ModeratorHi,
Please update Meta Box to the new version 5.5.1 to resolve this issue.
Long Nguyen
ModeratorHi,
The extension MB Relationship and MB Blocks does not have UI. Please read more here to use the code https://docs.metabox.io/extensions/mb-relationships/#using-code
You can also install the extension MB Builder to use UI to create custom fields, settings pages, or relationships.
https://docs.metabox.io/extensions/meta-box-builder/Long Nguyen
ModeratorHi,
For the WYSIWYG field, just use the field ID and function
val()to set the value.$('#wysiwyg').val('asdf1234');Long Nguyen
ModeratorHi Michele,
It might relate to the setting
contextof the meta box. If you use the Block Editor (Gutenberg), please set it to normal. Refer to this documentation https://docs.metabox.io/creating-meta-boxes/#contextsLong Nguyen
ModeratorHi,
I've issued you a full refund. Let me know if you need anything further!
Long Nguyen
ModeratorHi,
Please try to increase the PHP setting
max_input_varsand re-check this issue. Refer to this article https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/Let me know how it goes.
Long Nguyen
ModeratorHi,
The helper function
rwmb_set_meta()works only when the field is already registered. In Meta Box, fields are registered at hook init with priority 20. So, you need to run this function after that:add_action( 'init', function() { rwmb_set_meta( 12, 'my_field', 'my_value' ); }, 99 );Or you can use the function
update_term_meta()to set the term meta https://developer.wordpress.org/reference/functions/update_term_meta/December 15, 2021 at 10:41 AM in reply to: Warning: RWMB_Post_Field::search_by_title() expected to be a reference #32631Long Nguyen
ModeratorHi,
Thanks for your feedback.
We've noticed this issue and it will be fixed as soon as possible.
Long Nguyen
ModeratorHi AJ,
You can add the query string to the redirect URL via the PHP code, like this
$param1 = 'dog'; $param2 = 'cat'; echo do_shortcode('[mb_user_profile_login redirect="http://domain.com/specificpage/?parameter1=$param1¶meter2=$param2"]');Long Nguyen
ModeratorHi,
If the WooCommerce product on your site is the car, you can create more custom taxonomies for the product to be categorized by Year, Make, and Model. But Meta Box does not help you to create the filter search on the frontend. You need to create it with your own code or a third-party plugin. Refer to this article https://metabox.io/filter-posts-custom-fields-custom-taxonomies-archive-pages/
And I think no need to store the cars/products in the custom table because if you other plugins to build your site, it might not compatible with all plugins and themes.
December 14, 2021 at 8:57 PM in reply to: Creating custom fields for Buddyboss / Buddypress groups #32610Long Nguyen
ModeratorHi,
You can add custom fields for any registered post type with Meta Box, but you need to contact BuddyPress support to ask for outputting the field value on their end.
Long Nguyen
ModeratorHi,
The code works as well on your site, screen record https://share.getcloudapp.com/qGuR9Bwm
$('#taxonomy_advanced').val(5).trigger('change');But please notice that it helps you to set the value for the available options in the DOM. While the field type
select_advanced(select2) supports searching the other terms (options) via AJAX which are not available in the DOM.Long Nguyen
ModeratorHi,
You can check if there is a post in the relationship to show the word "Related posts" and code block inside the condition, just like this
{% if relationship.to is not empty %} Relationship: {% for post in relationship.to %} {{ post.title }} {% endfor %} {% endif %}Refer to this documentation of Twig https://twig.symfony.com/doc/2.x/tests/empty.html
Long Nguyen
ModeratorHi Ole,
The Frontend Submission form does not support generating a new post ID before you submit a new post like on the backend. So it is not possible to preview a new post.
You can preview a post when editing it via the frontend dashboard (after having the post ID), please follow this documentation https://developer.wordpress.org/reference/functions/get_preview_post_link/
-
AuthorPosts