Closed nikunp closed 3 months ago
Hey @nikunp, SVGs are not supported in WordPress out of the box.
In order to support SVGs, I activated this plugin:
This allowed me to upload an SVG, and add it to an ACF image field:
which is showing as expected in the response as an SVG 🙌🏼
I have svg support plugin installed my issues is that it was no surfacing in graphql
@nikunp can you provide more specific details on what you have tried to query? It appears that svgs are working as expected when WordPress has the SVG Support plugin installed. Are there additional steps needed to reproduce? Maybe other plugins are conflicting?
If you can share concrete steps to reproduce, and maybe share what queries are failing, etc that might help.
Does SVGs work sometimes but not other times? Like maybe they work in the Image field type but not the Gallery field type or something? The more info we have, the better we can help.
I'm going to close this as we weren't able to reproduce and no additional information has been provided to help us reproduce.
If you're able to provide more information that indicates this is an issue with WPGraphQL for ACF in the future, please open a new issue and link to this one for historical context, if applicable.
Description
When I use an svg image in the acf image field I get null but if I change it to a jpg it returns the proper value
Steps to reproduce
Change image from svg to jpg and rerun query
PHP or JSON export of the ACF Field Group(s)
Additional context
No response
WPGraphQL Version
1.27.0
WPGraphQL For ACF Version
2.3.0
ACF (Advanced Custom Fields) Version. Free or Pro?
6.3.1.2 Pro
WordPress Version
6.5.4
PHP Version
8.1
Additional enviornment details
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have disabled ALL plugins except for WPGraphQL, WPGraphQL For ACF, ACF, etc.