Ok, after some digging, from what I can tell is SVG preview’s are not supported at all in WP 4.0 unless previewing on the image attachments edit page. I can only assume this is connected to the ACG image previewing ability.
If you’re running WP 4.0 and try to preview your SVG’s in the media manager do you see them OK?
Also, a colleague did confirm that the data is still being stored and rendered in the front end although the field/preview still says “no image attached”… so it technically seems to be working BUT the preview is not.
ya too funny, i actually had a small aneurism thinking I’ll just go the good ol png route for now BUT then one of my png’s wouldn’t even save! lol. I couldn’t believe it. some would and some wouldn’t. Seems like something in 5.0.8 is causing a muck.
fingers cross on a patch soon 🙂
I am getting this as well. Running latest wordpress; ACF Pro 5.0.8
I have a dev site running the old ACF (Pre ACF Pro) on latest WP and it works fine…
Does downgrading to ACF PRO 5.0.7 work then?
Does anyone know how I can get a copy of ACF Pro 5.0.7 please? (Don’t have a local copy 🙁 )
…Found it under account settings
Hope this helps:
Looking at the console in chrome. I get the following error when trying to pick an SVG file:
Uncaught Error: A “url” property or function must be specified
I am having this issue again now with WP 4.3 and ACF pro 5.3.
I can upload svg into wordpress editor and I can also preview them in the post editor but when I click on “save / publish” the image dissappears and after loading the post again the image field is empty. Any ideas?
I’m seeing this bug unresolved with the same issues as the previous post.
On WordPress 4.2.2 with ACF PRO 5.3.5
I have a custom field of type “Image”. I upload an SVG (attached here for testing). It uploads to the Media Library, and displays correctly on the post (see pre-update.png). However, when I Publish/Update the post, the page reloads and it does not show the preview image, and instead it says “No Image Selected” as if it didn’t upload properly (see post-update.png).
On the back end, the SVG image pulls in correctly so I can use it in my custom theme. So it’s not a show stopper. But, it is troublesome looking and my clients have noticed this. Any suggestions to debug?
although using current WP (4.5.2) and ACF pro (220.127.116.11), I am having the same issue. SVGs will not attach to ACF, though they will show on front end. When you return to edit the page, the image field will display as if there was never an image uploaded. Secondly, when you then go to replace the image, it won’t show any previously uploaded svgs.
this is silly. he responded via PM to a support request and solved the problem.. why did he not update here?
this solves the problem. stop using whatever method you’re trying and just try that. worked for me.
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.