Using Advanced Custom Fields

Posted in: Newspaper
Post count: 196

Hello, I know that Advanced Custom Fields is not a plugin you guys give typical support on, but I was wondering if you know how to solve this.

I created a custom post type, dropped the single.php from the main newspaper theme and renamed it single-buy.php. From there I try and add code which is the following:

<div class=“Product Description”>

  • Release Date: <?php the_field(‘release_date’); ?>
  • Colorway: <?php the_field(‘colorway’); ?>
  • Style Code: <?php the_field(’style_code’); ?>
  • Price: <?php the_field(’price’); ?>

</div>

It doesn’t display within the content area. Not sure what I am doing wrong or do I need to plug something into the functions.php to work?

Post count: 23312

Hi,

Please take a look over the next useful guide from here -> https://forum.tagdiv.com/topic/add-additional-fields-to-posts-in-category-grid/ to know how you can configure your Advanced Custom Fields.

Hope this helps!

Thank you!

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