I’m facing an annoying issue that I can’t solve. I’ve made this code in order to add or update an attachment on a custom post type : function add_update_attachment( $ postID, $ photo ) { if ($ photo == ”) return; $ basename = basename($ photo); $ basenameExp = explode(“?”, $ basename); $ name =Read more