Using Advanced Custom Fields Plugin

You said you’re calling get_template_part('templates/content', 'front-page') but you’re calling ACF from a file called content-page-front.php. Try renaming that to content-front-page.php and call ACF functions—that’s the file get_template_part() is looking for.

Hi everyone,

As that link is actually broken and the actual code data from the post is lost, for anyone interested:

https://web.archive.org/web/20141006162633/julienmelissas.com/acf-get_fields/

And thanks for the post @JulienMelissas by the way, very helpful even today.

Anyone got an idea on how to lower the db queries with ACF? I know using acf-json/ kinda halves them but would be nice to lower them even further (especially if using flexible content).

@ibanlopez wow -it’s been a while since I’ve seen this… anyways, the page on my website seems to be working fine for me: http://julienmelissas.com/acf-get_fields/

You’re totally right @JulienMelissas. I see it now perfect.
This morning the code just didn’t show up, so I tried to find it somehow.
Thank u man!

Hope this can help:

https://www.billerickson.net/advanced-custom-fields-frontend-dependency/


1 Like