@elliot:
This is what a noob I am: I didn’t realize you could actually make custom posts appear on ANY page you wanted just by using a query on that page. I thought you had to use one special page to make them show up, and I couldn’t figure out what that mythical one special page was. Now I understand much better how this plugin works, and it blows my mind even more. Thanks for making it!
Hi @elliot,
I did not mean to imply the problem was with ACF. I really am just trying to understand how it works. I’m reading up on the template hierarchy now. Thanks.
@elliot,
I am having the same problem as @emilygutierrez. I am just using the example page from your site: http://www.advancedcustomfields.com/resources/getting-started/displaying-custom-field-values-in-your-theme/
and am pretty much getting the same result: just the title with no data.
I created a Custom Post Type using CPT UI and called it heroimage. I then created a new Custom Field with two entries, custom_title (text) and hero_image (get by URL). I saved the sample page to my theme directory under the title heroimage.php. I entered the data in my custom field and saved it. When I click on View Hero Image, I see only the title, no picture or custom title.
I have looked into this on various other sites and it seems that the database has to be queried in order to produce results if you are calling them on a page. But your example makes it look like no database query is necessary. I am confused! Please help, because I would really like to master this plugin.
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.