Support

Account

Home Forums Front-end Issues Display ACF Field in Raw HTML Code Reply To: Display ACF Field in Raw HTML Code

  • An ACF file field has these return types: File Array (array), File URL (string), or File ID (integer).

    ACF will not automatically output a link to the file. You must create this yourself. For example if the return type is URL then

    
    $url = get_field('citation_pdf_url');
    ?><a href="<?php echo $url; ?>">Click Here</a><?php