Home › Forums › Front-end Issues › ACF not displaying on frontend
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.
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?
Your attachment didn’t work, it exceeded 4MB. Can you .zip it and try again.
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.
The topic ‘ACF not displaying on frontend’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.