Show ACF Custom Field Outside Loop

Glenn Glenn's Blog 2 Comments

This is how to display an Advanced Custom Field (ACF) outside of the WordPress Loop:- Or to extend the code to only show if the field is present:- In our tests we have found that ‘the_field’ and ‘get_field’ are interchangeable methods – the main thing is to ensure that you add ‘$post->ID’.