• Resolved Lizzam

    (@lizzam)


    Hi all,

    I have a page with custom blocks made with LZB. Lets call this Page A. Now I’d like to create another page (Page B) with a block that can access the content of an LZB block in Page A. is that possible?

    TL:DR looking for a function that’s similar to ACF’s get_field().

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nK

    (@nko)

    Hi,

    There is a difference between blocks and custom fields. Blocks are a part of the post content while the ACF fields are stored in the posts Meta.

    So, to get a specific block data you will need to parse the whole post content.

    In case you just want to add meta fields, you can use the Save in Meta option in the Lazy Blocks controls settings. In this case, the control value will be saved in the post Meta and not in the post Content. Learn more here – https://www.lazyblocks.com/docs/blocks-controls/overview/#custom-meta-field

    Regards,
    Nikita.

    Thread Starter Lizzam

    (@lizzam)

    Awesome. managed to make this works for grabbing content across pages in a single wordpress installation.

    Thank you!

    • This reply was modified 1 year, 4 months ago by Lizzam.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Access LazyBlock content in another post’ is closed to new replies.