Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
You can add custom classes to a custom field in the Advanced tab, option Custom CSS class, and separate them by space. Screenshot https://monosnap.com/file/JiGv0NOrapjy2NgOXHsnFCml6nZGAa
Long Nguyen
ModeratorHi Peter,
Meta Box does not support setting the first image of the
image_advancedfield to the featured image. But with the coding, you can use the action hookrwmb_after_save_fieldto do something after saving a field. Please read more on the documentation https://docs.metabox.io/actions/#rwmb_after_save_fieldApril 5, 2022 at 6:54 PM in reply to: ✅plupload_image only working for first instance in functions.php file #35475Long Nguyen
ModeratorHi Christopher,
The field type
plupload_imageis deprecated, please use the field typeimage_advancedor other image fields likeimage_uploadto upload images. Read more on the documentation
https://docs.metabox.io/fields/image-upload/
https://docs.metabox.io/fields/image-advanced/Long Nguyen
ModeratorHi,
The post tag does not have choices (select/checkbox) to select tags like category, it only supports searching the tag and adding it to the list. So the conditional logic does not work with it.
An alternative way is to use the field type
taxonomyand remove the default post tag box to work with this extension.
https://docs.metabox.io/fields/taxonomy/Long Nguyen
ModeratorHi,
You can use the proxy
mb.to run a PHP/WordPress function, refer to this documentation
https://docs.metabox.io/extensions/mb-views/#running-php-functions
https://developer.wordpress.org/reference/functions/wp_nav_menu/For example:
{{ mb.wp_nav_menu() }}Long Nguyen
ModeratorHi,
If you have a number with two characters following the letters, you also need to add two characters for all numbers such as
SDG 01 -
SDG 02 -
SDG 10 -
SDG 11 -Long Nguyen
ModeratorHi,
You can create a shortcode to display the subfield value on the frontend. Then you can insert the view/shortcode anywhere with the page builder. Refer to this documentation https://docs.metabox.io/extensions/meta-box-group/#outputing-group-with-page-builders
Long Nguyen
ModeratorHi,
This is beyond the scope of support of Meta Box. You can try to use a third-party plugin to limit posts by user role https://wordpress.org/plugins/user-posts-limit/
Refer to this topic https://wordpress.org/support/topic/limit-post-creation-count-by-author-or-role/Long Nguyen
ModeratorHi Keith,
Please swap
administratorandcustomerroles like this to include the user meta fields'include' => [ 'relation' => 'OR', 'user_role' => ['administrator'], 'edited_user_role' => ['customer'], ],Let me know if it works.
Long Nguyen
ModeratorHi,
Currently, Meta Box does not support displaying choice list in columns like that. I will inform the development team to consider supporting this in future updates.
Long Nguyen
ModeratorHi,
Meta Box only supports outputting the field value (raw data) on the frontend. If you have any issue with style of the field, please contact builder support to ask for help with that.
Long Nguyen
ModeratorHi,
You can add the code above to your function to use in the builder. For example:
function my_get_mb_advanced_image($field) { $term_id = get_queried_object_id(); $images = rwmb_meta( $field_id, ['object_type' => 'term', 'size' => 'thumbnail'], $term_id ); foreach ( $images as $image ) { echo '<a href="' .$image['full_url']. '"><img src="' .$image['url']. '"></a>'; } }For further info, please contact Oxygen support to ask for implementation of the code in the repeater.
Long Nguyen
ModeratorHi,
Yes, it is possible to display the custom fields in the frontend form as I replied here https://support.metabox.io/topic/custom-html-form-and-taxonomies/#post-30746
Read more on the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#advanced-form
Long Nguyen
ModeratorHi,
The
groupfield saved data (subfield values) in the database as a serialized array, it is the core feature of the plugin, and not possible to save subfield values in each row like a single field. Please read more on this article: https://metabox.io/create-group-of-custom-fields-with-meta-box-group/#how-does-the-meta-box-group-save-dataLong Nguyen
ModeratorHi Greg,
The option to set the default term for new posts is not available when you use the WP function register_post_type() which the plugin MB Custom Post Type does the same.
The field taxonomy set the post terms so you can use it to set a default value (term) after saving the post.
Or you can use custom code to do that, refer to this topic https://stackoverflow.com/questions/66349128/assign-default-taxonomy-term-to-custom-post-type-when-new-post-created
-
AuthorPosts