Display Advanced Custom Fields in a block

Posted in: Newspaper
Post count: 17

Hi!

I’m trying to display an Advanced Custom Field value from a post(s) into a block (Flex_1) placed in homepage.

Would like to pass value to meta area of block.

How do I get the data from post to display in meta area? I understand Loop…but i don’t see anyway to collect info..all i see is $this…which i believe is how…

any direction would be great…

is it possible to add_filter into $this.

thanks in advance…bc i’m pulling my f$&(king hair. 🙂

Post count: 22421

Hello,

If you do not understand the concept of $this then please read this guide: https://stackoverflow.com/questions/1523479/what-does-the-variable-this-mean-in-php
You can try to use acf’s advice on how to implement it:
https://www.advancedcustomfields.com/resources/how-to-get-values-from-another-post/

I hope this helps.

Post count: 17

Thank you. Will continue to ticker with this…

Post count: 9

I have the same problem, Im trying to add a custom field to a block, but cant get it done… any advice?

Post count: 22421

Sorry but we have not tested ACF so we cannot offer any insight into this issue.
Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.