Shopify Liquid Get Unique Page Content by ID

Is it possible to query a page by ID in the Shopify Liquid Templating API?

I have a Page created called Bio. I would like to get the {{ page.content }} of the Bio page and use it on the home page, so when a content editor changes the Bio, it would update on both the Bio page AND the home page.

Something like

{{ assign bio_page = pages.page384848384.content }}

{{ bio_page | strip_html | truncatewords: 48 }}

Is this possible?

1 Like

Not by ID but you can reference items by their handle.

eg:

{{ pages.your-page-handle.content }}
3 Likes