Advanced Custom Fields on Homepage
This support request was posted in BBQ by ryanfarmer
- ryanfarmer October 12, 2013 at 2:47 am
Hi. Love the theme. I am trying to use ACF plugin for some customization and i cant get it work on the homepage using the_field(‘field_name’); .
It works on any other page just fine.
ryanfarmer October 12, 2013 at 2:53 amAck. Error on my part. Had the wrong page flagged for home. Please remove this post.
ryanfarmer October 12, 2013 at 3:03 amSorry for being all over the place. I am still having the issue where I can’t use ACF on the homepage. I cant use the custom field after the slider on the homepage template. All other places/templates are fine.
(please remove the reply above, not the post)
Juanfra Aldasoro October 12, 2013 at 7:49 amHi Ryan,
Thanks for writing. I hope you’re doing well.
I’m deeply sorry but we don’t provide support in any plugin that is not ours. I suggest you that try and contact the plugin owner in the plugin page so he can guide you on how to make the plugin work.
Best,
Juan.ryanfarmer October 12, 2013 at 2:42 pmHey Jaunfra-
It’s not just ACF, i cannot get standard custom fields to display when I have set a static page to be my Front Page in the Reading settings. If I change that setting and my static page is just a generic page, my custom fields will work.
`ID, ‘test_field’, true); ?>` yields nothing when the page is set as the Front Page.
I’m working on setting this up on a test link for you to see.
ryanfarmer October 12, 2013 at 2:42 pmThat code didnt do well in the formatting.
php echo get_post_meta($post->ID, ‘test_field’, true);
ryanfarmer October 12, 2013 at 2:46 pmI just figured it out. The homepage template does not have a Loop on it. After adding it in there, I was able to get custom fields to display. Thanks!
Juanfra Aldasoro October 12, 2013 at 4:25 pmNo problem 🙂
Yes, actually we don’t have a loop over there cause we’re not displaying any of the page content.
Thanks for notifying us about the solution, have a great weekend.
Juan.
This topic is marked as resolved
Only the topic author can re-open this thread.