Archived topic
Advanced Custom Fields en POSTs
6 replies · Started by agost15 on March 23, 2021
Buenas tardes
Estoy intentando generar un post que se visualicen los ACF.
En la creación, puedo rellenarlos pero después no se visualizan en la pagina.
¿Que pasos tengo que seguir para poder visualizar estos en la entrada del blog?
¿Tengo que insertar codigo en algun archivo?
Espero me podais ayudar
Un saludo
Angeles
Hi there,
where in your posts do you want the ACF content to be displayed?
Do you have an example image / site that you want to match ?
This is the idea. Thanks in advance, David!

So i assume you have an ACF template to output that content.
If so you can use a Hook Element to insert that template into your posts:
https://docs.generatepress.com/article/hooks-element-overview/
Yes, I created a hook but then... That I have to do? insert code into the hook in single.php? or in the same hook can I insert php instead of html? Or shortcode?
I have tried everything and I have not succeeded. Maybe I'm doing something wrong.
Por fin he conseguido, después de muchas pruebas. Gracias por las respuestas
Hi there,
If you could point us to where you want this placed within the single post page, we could tell you which hook to assign your Hook or Block Element on.
Alternatively, you can use this hook visual guide to place your Block or Hook element on:
https://docs.generatepress.com/article/hooks-visual-guide/