Sorry if this is a dumb question. I’d like to display my CPT on the front end dynamically as label : field value. I know I a workaround is to add a static html label in front of the dynamic field but that’s untidy if there is no data in the field.
I know this can be done the old school way by adding a code snippet to the template file in a classic theme but how is this done with a FSE block theme. i.e. where do I insert the code?
Hi, my cpt has 1 required image and 2 optional images. If no optional images are added then a label and fallback image are displayed on the front end. I don’t want to display any fallback images or labels as its messy and leaves stuff in the code.
I’ve seen elsewhere and on the ACF forum that the way to fix this is to add the php code to the template file but that only works for a classic theme.