Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1000931

    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]' ); ?>

    #1000963

    Hey vasileandrei,

    Please refer to the following:

    A joint thread between here and the ACF forums.

    Best regards,
    Jordan Shannon

    #1001058

    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

    #1001211

    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

    #1001700

    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>
    #1001725

    Hi vasileandrei,

    Is it for display on post built with the default editor?

    Best regards,
    Victoria

    #1002751

    yes

    #1003264

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.