Generating Wrong field Type on Post Screen
-
Hello,
We are using a “File / Image / Video” field type for creating tour gallery on the website.
It was working fine before update the plugin, when we updated this plugin, it is displaying a text box at the place of “File Upload” field on the post screen and displaying only attachment ids in this, we cannot able to add or update this field value.
We have checked this field type at the back office and DataBase and it is displaying and saved with File field type, please check screenshot on this “Screenshot” link.
We try to debug our end in your plugin and check this “Find” function which is exist the “Post_Type.php” file, in this function first time we are geeting a valid object with file type value but second time it is returning the text type.Check below json script which is displaying with this field.
{“htmlAttr”:{“id”:”pods-form-ui-pods-meta-tour-gallery”,”class”:”pods-form-ui-field pods-form-ui-field-type-text pods-form-ui-field-name-pods-meta-tour-gallery”,”name”:”pods_meta_tour_gallery”,”name_clean”:”pods-meta-tour-gallery”},”fieldType”:”text”,”fieldItemData”:[],”fieldConfig”:{“object_type”:”field”,”object_storage_type”:”post_type”,”name”:”pods_meta_tour_gallery”,”id”:67,”parent”:39,”group”:”group\/39\/more_fields”,”label”:”Gallery”,”description”:””,”weight”:5,”type”:”text”,”required”:”0″,”pick_post_status”:[“publish”],”admin_only”:”0″,”restrict_role”:”0″,”restrict_capability”:”0″,”hidden”:”0″,”read_only”:”0″,”roles_allowed”:[“administrator”],”rest_read”:”0″,”rest_write”:”0″,”rest_pick_response”:”array”,”rest_pick_depth”:”2″,”unique”:”0″,”post_status”:”publish”,”sister_id”:”– Select One –“,”class”:”gallery”,”file_format_type”:”multi”,”file_uploader”:”attachment”,”file_attachment_tab”:”upload”,”file_upload_dir”:”wp”,”file_edit_title”:”1″,”file_show_edit_link”:”0″,”file_linked”:”0″,”file_limit”:”0″,”file_type”:”images”,”file_field_template”:”tiles”,”file_add_button”:”Add File”,”file_modal_title”:”Attach a file”,”file_modal_add_button”:”Add File”,”help”:””,”default”:null,”attributes”:null,”grouped”:0,”text_repeatable”:0,”output_options”:null,”text_allowed_html_tags”:”strong em a ul ol li b i”,”text_max_length”:255,”text_placeholder”:””,”groups”:[],”fields”:[],”item_id”:67,”placeholder”:””},”fieldEmbed”:true,”fieldValue”:””}
We have lots of entries on the our website so, we can not create a new field for this, kindly check this issue and provide relevant solutions for this.
Thanks
- The topic ‘Generating Wrong field Type on Post Screen’ is closed to new replies.