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!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.