Hi
where I insert the code of Advanced Custom Fields in single.php?
i tried in several places but it does not work
the code is something like that <?php the_field( 'accession_no_[087]' ); ?>
Hey vasileandrei,
Please refer to the following:
A joint thread between here and the ACF forums.
Best regards,
Jordan Shannon
it has nothing to do with what i ask
if i display the above code in get_footer is ok but if I put it in the main it does not work
Hi vasileandrei,
It depends on where you’re trying to show it. Can you explain a bit more what you’re trying to achieve?
Best regards,
Victoria
to show custom fields (acf) in posts
like
<div class="book-meta">
<ul>
<li><strong>Author:</strong> <?php the_field( 'accession_no_[087]' ); ?></li>
<li><strong>Release Year:</strong> <?php the_field( 'collection_title_[490]' ); ?></li>
<li><strong>Book Rating:</strong> <?php the_field( 'reference_[091]' ); ?></li>
</ul>
</div>
Hi vasileandrei,
Is it for display on post built with the default editor?
Best regards,
Victoria
Hi,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
Basilis