I’m new to developing with php and ACF.
I have two custom fields, file type and which should appear on POST type page only when a certain category is selected.
How could I create this code to display the information registered in these post custom fields that come from the category. They would be displayed on the page which is a result and where the button should appear.
I tried that, but without success. Where the number “7” is the category. Thanks!
<a class="justify-content-center" href="<?php the_field('archive', '7'); ?>">
Archive
</a>