Forum Replies Created
-
AuthorPosts
-
June 15, 2023 at 9:01 PM in reply to: [Bug] UI Disappears after changing Sub-Group item to Checkbox #42228
Peter
ModeratorHello,
Thanks for your feedback. I can reproduce the issue on my side. I've escalated this issue to the development team to fix it in the next update.
Peter
ModeratorHello,
You can use the field
image_advancedto create a gallery for the CPT and display it in the frontend with Elementor.
https://docs.metabox.io/fields/image-advanced/June 15, 2023 at 8:46 PM in reply to: Select Advanced: Populate Options from Custom Model based on another field value #42225Peter
ModeratorHello,
You can try to use this code to get the post ID in the admin area
$post_id = null; if ( isset( $_GET['post'] ) ) { $post_id = intval( $_GET['post'] ); } elseif ( isset( $_POST['post_ID'] ) ) { $post_id = intval( $_POST['post_ID'] ); }Peter
ModeratorHello,
The post slug is the property
post_nameof the post object. You can refer to this topic to update the post slug https://support.metabox.io/topic/set-post-title-from-field-and-encode-the-slug/?swcfpc=1#post-36539Peter
ModeratorHello,
Yes, exactly what I need to tell you. The map field saves the location to the database with the format:
lat,lng,zoom, it is noted in the documentation https://docs.metabox.io/fields/map/#data
Apparently, if a field does not have a correct value in the database, it will not display properly on the site. And I think no need to update the doc in this case.June 14, 2023 at 10:10 PM in reply to: Archive Template tags are not working with Php 8.0 in meta views #42204Peter
ModeratorHello,
So it relates to the code in the View template, can you please share the code that you add to the View template? And share a screenshot of the setting box (Type, Location, Render for ...).
June 14, 2023 at 10:02 PM in reply to: Missing filter to allow devs to extend which screens to show on #42203Peter
ModeratorHello,
Thanks for your feedback. I will let our development team know about the filter hook and get back to you later.
Peter
ModeratorHello Yasmine,
I've informed our development team about this issue and they are working on it. I will let you know when I have any information.
June 14, 2023 at 9:27 PM in reply to: How to Expire a Post Based on Meta Box custom field value #42201Peter
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. -
AuthorPosts