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

  • Ha! After a bit more research I see that I can use PHP to get the SVG contents after all,

    <?php $logo = get_field(‘header_logo’, ‘option’); ?>
    <?php echo file_get_contents( $logo ); ?>

    Problem solved! I hope this is helpful for someone else.