Archived topic
Advanced Custom Fields doesn't display content on Generatepress
5 replies · Started by Marcin on October 13, 2020
Hi,
I need to use the Advanced Custom Fields plugin for my posts but it doesn't work. Since i installed gp, the content added in ACF is simply not displayed. Do You have any thoughts?
Hi there,
How are you displaying the ACF Content ? Are you using a Custom Template ?
No, I have Advanced Custom Fields plugin, so I've added an extra field to specyfic post type.
You need to output those fields in the template, which would require either:
a. A custom PHP template for your posts
OR
b. the easier method is to use GP Hooks to insert your fields into the template:
https://docs.generatepress.com/article/hooks-element-overview/
ACF provides documentation on the code it requires to display its fields here:
https://www.advancedcustomfields.com/resources/the_field/
We can help with the hook method ... Let us know if you need any help with that.
Okay, I understand. Hook method it what I need. I think I can manage it myself, but If I would have a problem I will write back. Thank You.
You're welcome !