Hi everyone,
I’m hoping someone can help me with this… ACF’s are not displaying on my home page.
The home page is created using Dynamik Website Builder for Genesis and the code is inserted using hooks.
I followed the FAQ (http://www.advancedcustomfields.com/faq/value-loading-posts-page/), but that didn’t seem to help.
The code I’m trying to hook into the front page is for an image from a specific CPT…
<img src="<?php the_field('product_type_image', get_option('page_for_posts')); ?>" />
Changing “page_for_posts” to the post ID didn’t help at all.
Any help and solution would be awesome 🙂
—- Versions —-
ACF v5.3.1
WP v4.3.1
Is the field you’re trying to get actually added on the home page? You said something about a CPT.
Yes. The code I used to add the field is included above :/
I’m going to need more information that what you’ve posted. Can you .zip the template file and attach it so that I can get a good look at what’s going on?
This reply has been marked as private.
This reply has been marked as private.
Your attachment didn’t work, it exceeded 4MB. Can you .zip it and try again.
This reply has been marked as private.
I can’t set up an entire site to look at it. I was just looking for the code for the specific template file. You should be able to post that here by clicking the “code” link at the top of the message and pasting in the code or just attach the one template file.