Home Forums ACF PRO Common block multisites


Common block multisites

  • Hi,

    I’m trying to create a common block between parent and childs multisites (for example field textarea with data).

    I need to recover get_field(‘textarea_presentation’) from the post object (cf post.png)

    I need to access post_content->data->textarea_presentation

    Can you help me please ?

    Thank you so much

        function acf_block_render_child_callback($block)
            $args = [
                'name' => 'hp',
                'post_status' => 'publish',
                'post_type' => 'page'
            $presentation = Timber::get_post($args);
            return Timber::render(
                    'block' => $block,
                    'presentation' => $presentation
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.