Support

Account

Home Forums General Issues ACF file field: Getting generated images from PDF Reply To: ACF file field: Getting generated images from PDF

  • Thanks again for your help. I am pretty new with all this.

    I have now tried around several attempts, but I still get an error:
    Parse error: syntax error, unexpected ‘false’ (T_STRING), expecting ‘)’ in (…)/wp-content/plugins/oxygen/component-framework/components/classes/code-block.class.php(115) : eval()’d code on line 2

    <?php if( get_field('dokumente_datei') ): 
    $file_id = intval(get_field('dokumente_datei', false false));
    $image = get_attachment_image_src($file_id, 'thumbnail');
    
    ?>
    <img src="<?php echo esc_attr($image); ?>" />
    
    <?php endif; ?>

    Your help is highly appreciated!