Forum Replies Created
-
AuthorPosts
-
June 15, 2023 at 10:10 PM in reply to: Searching for Forum Post - Inline Editing Code on Admin Page #42230
Peter
ModeratorHello Joe,
Does the code relate to a custom field or CPT? Can you please give more details?
Peter
ModeratorHello,
It's the customization code for your specific needs so it is beyond our scope of support. FYI, the iframe is not available on the page load, it is available when clicking on the button "Add New Post". You can listen to the body change to do stuff.
For example:
jQuery(document).ready(function($) { $('body').on('click', '.rwmb-post-add-button', function() { $('body').find('#rwmb-modal-iframe').on('load', function () { $(this).contents().find("#wpwrap").css("background-color", "red"); }); }); });June 15, 2023 at 9:01 PM in reply to: [Bug] UI Disappears after changing Sub-Group item to Checkbox #42228Peter
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. -
AuthorPosts