Forum Replies Created
-
AuthorPosts
-
[email protected]
ParticipantHi Thanks this validation is working also what about the old validation setting is that fixed ..?
May 19, 2019 at 12:44 PM in reply to: ✅metabox.io media-grid.min.js not loading on frontend form #14628[email protected]
Participanthi Anh tran
i checked its not theme problem i disabled all css and js of the theme but the popup still same is it WordPress include files not loading..?[email protected]
ParticipantHi I have tried your code and tried to redirect but it goes to post submitted successfully page how to redirect to error page
thanksMay 16, 2019 at 3:56 PM in reply to: ✅metabox.io media-grid.min.js not loading on frontend form #14585[email protected]
Participanthi please check the screen shot css is not working

[email protected]
ParticipantHi Anh Tran Can we validate after form submit using php backend validation if the image field is empty
in-case as the front validation not works
thanks[email protected]
ParticipantOk so when updating the module to add this validation in future release..?
[email protected]
ParticipantHi Anh Tran
Ok how to solve this validation for image upload is very important. Can you provide any quick solution thanks[email protected]
Participantmetabox code
$meta_boxes[] = array( 'id' => 'submit_listing', 'title' => esc_html__( 'Submit Listing' ), 'post_types' => array('listing' ), 'context' => 'advanced', 'priority' => 'high', 'autosave' => 'true', 'validation' => array( 'rules' => array( 'post_title'=> array( 'required' => true, ), 'gallery_upload' => array( 'required' => true, ), // Rules for other fields ), ///////////////////////// // Optional override of default error messages 'messages' => array( 'gallery_upload' => array( 'required' => 'Please Upload Images', ),)
May 14, 2019 at 1:53 PM in reply to: ✅metabox.io media-grid.min.js not loading on frontend form #14545[email protected]
Participanti added setting same problem
function mb_allow_subscriber_uploads() { if ( is_admin() ) { return; } // Replace 'subscriber' with the required role to update, can also be contributor. $subscriber = get_role( 'subscriber' ); $subscriber->add_cap( 'upload_files' ); } add_action( 'init', 'mb_allow_subscriber_uploads' );May 14, 2019 at 1:03 PM in reply to: ✅metabox.io media-grid.min.js not loading on frontend form #14542[email protected]
Participanthi I have not added any setting for upload privilege .how to enable thanks
[email protected]
ParticipantHi please check the following code
array( 'id' => 'gallery_upload', 'name' => esc_html__( 'Image Upload', 'your-prefix' ), 'type' => 'image_upload', 'admin_columns' => 'before title', 'required' => true, // Delete image from Media Library when remove it from post meta? // Note: it might affect other posts if you use same image for multiple posts 'force_delete' => true, // Maximum image uploads 'max_file_uploads' => 5, // Display the "Uploaded 1/2 files" status 'max_status' => true, ),[email protected]
Participantthis it is solved
April 25, 2019 at 6:49 PM in reply to: ✅How to use metabox to expire post type automatically after 30 days interval #14282[email protected]
ParticipantThanks, i have used cron job instead thanks
April 22, 2019 at 4:00 PM in reply to: Delete all media images linked to post type using front end form #14222[email protected]
Participanthi support I followed that link hint but its not working can provide another link
thanksApril 21, 2019 at 1:54 PM in reply to: ✅How to use metabox to expire post type automatically after 30 days interval #14215[email protected]
Participantlike i have post published after 30 day interval the post type status need to change to draft as it will be treated as expired. is there solution with metabox.io to make post expire automatically by changing the post status after 30 day interval..?
-
AuthorPosts