Forum Replies Created
-
AuthorPosts
-
June 14, 2023 at 9:27 PM in reply to: How to Expire a Post Based on Meta Box custom field value #42201
Peter
ModeratorHello,
You can use the action hook
rwmb_{$field_id}_after_save_fieldand update the post status after saving the field value. Please read more in the documentation
https://docs.metabox.io/actions/rwmb-after-save-field/Peter
ModeratorHello,
Can you please share some screenshots of the revision setting on your site? It should be added to the field group settings, screenshot https://monosnap.com/file/O4ToOWx9AR1vIeLrv2hBVVPBv9HyPu
June 14, 2023 at 8:39 PM in reply to: Loop through several custom post types to update post_title using a custom field #42197Peter
ModeratorHello,
The
servicein the action hook should be the field group ID, not the post type slug. Please read more in the documentation rwmb_{$field_group_id}_after_save_post.If you assign one field group for multiple post types, you can use one block of code to modify the post title of other post types.
June 14, 2023 at 8:32 PM in reply to: Select Advanced: Populate Options from Custom Model based on another field value #42196Peter
ModeratorHello,
>> How to get box fields’ values inside the callback function?
To get a normal field value inside the callback function, you can use the functionget_post_meta(). To get a field value of a model, you need to use an SQL query.>> What is the filter/action for setting the field options?
I do not understand this question. If you want to customize the options for a field, you can use the filter hookrwmb_normalize_{$field_id}_field. Refer to the documentation https://docs.metabox.io/filters/rwmb-normalize-field/Peter
ModeratorHello,
This issue has been fixed in this commit https://github.com/wpmetabox/meta-box/commit/89d7f8a556954492a3dbcecaf5b6726fecd71445
you can apply the changes on your site, clear browser cache and let me know how it goes.Peter
ModeratorHello,
Can you please let me know what data of the post type you import? Please check the value of the map field in the database before/after you click on the Update button and share it with me.
Peter
ModeratorHello Joe,
Yes, if you want to use the
single_imagefield to set the featured image of the post, you need to use it as a top field (outside of a group field), then disable the featured image of the post.
For the CPT, you can go to Meta Box > Post Types > Edit the CPT > Support tab > Disable Thumbnail option.June 13, 2023 at 9:10 PM in reply to: Select Advanced: Populate Options from Custom Model based on another field value #42181Peter
ModeratorHello,
If you use the custom model, it does not work with MB Relationships or
postfield. So you will need to create a custom callback function for theselect_advancedfield to display a list of models and it is beyond our scope of support.
If you are not able to do that, please contact us here https://metabox.io/contact/
and submit a customization service request, our development team will help you with an extra fee.June 13, 2023 at 8:56 PM in reply to: How to display custom user meta from "author" using a shortcode #42180Peter
ModeratorHello,
You can contact Ninja Tables support to ask for get the user ID then pass it to the helper shortcode
[rwmb_meta id="phone" object_id="user-ID-here" object_type="user"]Refer to the documentation https://docs.metabox.io/shortcode/
Peter
ModeratorHello,
You can use this custom CSS code to hide the meta box title on the frontend.
#profile-form > .rwmb-meta-box > h2 { display: none; }June 12, 2023 at 10:05 PM in reply to: Dynanic Countdown is not working for clonable group files. #42169Peter
ModeratorHello,
I see the widget Countdown of Elementor Pro does not work with a cloneable field. It only accepts a single-field value. I will inform our development team to support this case in future updates.
Peter
ModeratorHello Joe,
If you move a top field into a group as a subfield, the subfield will not display the value of the top field because now, the group field will save value to the database under the group ID. Please read more here https://metabox.io/plugins/meta-box-group/?swcfpc=1
Peter
ModeratorHello Erik,
With the select field, you should add the choices following the format as recommended
Enter each choice per line. You can also set both value and label like
red: RedIn this case, it does not work, you can use the field
urlortextto output the URL.June 12, 2023 at 9:06 PM in reply to: Using Shortcode or WP Block markup inside MB Block no longer works #42166Peter
ModeratorHello,
I don't see that issue on my demo site. Please try to add a line break before the shortcode or try to switch the theme to a WordPress theme (2021) and check this issue again.
Peter
ModeratorHello,
You can try to deactivate all plugins except Meta Box, MB extension plugins and switch to a standard theme of WordPress then check this issue again.
-
AuthorPosts