Support

Account

Home Forums Feature Requests File field type: Option to return SVG as code Reply To: File field type: Option to return SVG as code

  • Hello,

    We encountered some issues with the file_get_contents() function in our local env.
    The solution we found is the following:

    <?php include get_attached_file(get_field('image_field')['id'] ); ?>

    It will include the svg’s code.