Displaying Advanced Custom Fields in Custom Template
-
I’m trying to display a custom field (a field that was created in Advanced Custom Fields)
Currently I have this line in the custom template
<?php if( get_field('wholesale_part_number') ): ?><dt class="pn"><?php the_field('wholesale_part_number'); ?></dt><dd class="pn"><?php the_field('wholesale_part_number'); ?></dd><?php endif; ?>
The custom template is selected in general settings.
Please advise – what am I doing wrong here?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Displaying Advanced Custom Fields in Custom Template’ is closed to new replies.