Home › Forums › Gutenberg › Get data from block in different page › Reply To: Get data from block in different page
@dmchale Thank you for the code, but how do I use it?
If I want to get the authors name (ACF field) from my Testimonials block on page 2, would I use the following…? what is the selector?
get_field_from_block( $selector, 2, 'block-49b987a0-a081-4bf7-b7e0-5858d28c9c0a' );
any help is appreciated.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.