
I have a custom field for blog posts. It shows up when creating a blog post. I need the custom field result to show up on the Front-end for all blog posts. I am assuming that I insert code in the single.php of the template I am using. I see three options for codding to put in the single.php template but none of them display the custom field results in the Front-end.
Note: I have the ACF Views plugin.
[acf_views view-id=”60″ name=”Lake Point Marker 2″]
<div id=”view” class=”acf-view acf-view–id–57 acf-view–object-id–65″>
<div class=”acf-view__row acf-view__lake_marker_point_2”>
<div class=”acf-view__label”>Lake Marker Point2</div>
</div>
</div>
echo ‘Lake Marker: ‘ .get_field( ‘lake_marker_point’ ); <div class=”acf-view__row acf-view__lake_marker_point”>
<div class=”acf-view__label”>Lake Marker Point</div>
</div>
I also what the custom field to show up on the Front-end of all topics posted in my bbPress forum. It does show up when creating a new topic. Anyone know what file needs to be edited in bbPress? I have not heard back from them.
(I was told bbPress is compatible with ACH.)
Correction where there is in the code lake_marker_point it should be ‘lake_marker_point2’.
Good news
I just tested the following code on page.php and the custom field shows up. So I know the following custom code does work. But what file do I need to edit for the custom field to show up on the Front-end for all blog posts. single.php appears to not be the correct file.
echo ‘Lake Marker: ‘ .get_field( ‘lake_marker_point_2’ );