Reputation: 737
I tried following the instruction s but can't get the plugin to work, the fields show in admin and i upload images with them but when I publish and view the post no images show. Do I need to add something to template files for this to show?
Upvotes: 1
Views: 1697
Reputation: 16127
Reading from the producer's page they state that for images/files their API returns a URL.
That might mean that the plug-in is not integrated with the native file handling functions. And you might need to use their template tags like <img src="<?php the_field('name') ?>" />
.
file: public_html/wp-content/themes/theme_name/category.php
somewhere after this
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<img src="<?php the_field('name') ?>" />
...
Upvotes: 1
Reputation: 3080
Yes, you need to add:
<?php the_field('field_name'); ?>
Check ACF docs: http://www.advancedcustomfields.com/docs/code-examples/
Upvotes: 1