An article, or blog post, in a blog.
Properties
The relative URL where POST requests are sent when creating new comments.
The published comments for the article.
Returns an empty array if comments are disabled.
TipUse the paginate tag to choose how many comments to show at once, up to a limit of 50.
Tip:Use the paginate tag to choose how many comments to show at once, up to a limit of 50.
Tip: Use the <a href="/docs/api/liquid/tags/paginate">paginate</a> tag to choose how many comments to show at once, up to a limit of 50.
Returns
trueif comments are enabled. Returnsfalseif not.A timestamp for when the article was created.
TipUse the
datefilter to format the timestamp.Tip:Use the
datefilter to format the timestamp.Tip: Use the <a href="/docs/api/liquid/filters/date"><code>date</code> filter</a> to format the timestamp.
- metafieldsmetafields
The metafields applied to the article.
TipTo learn about how to create metafields, refer to Create and manage metafields or visit the Shopify Help Center.
Tip:To learn about how to create metafields, refer to Create and manage metafields or visit the Shopify Help Center.
Tip: To learn about how to create metafields, refer to <a href="/apps/metafields/manage">Create and manage metafields</a> or visit the <a href="https://help.shopify.com/manual/metafields">Shopify Help Center</a>.
Returns
trueif the blog that the article belongs to is set to moderate comments. Returnsfalseif not.A timestamp for when the article was published.
TipUse the
datefilter to format the timestamp.Tip:Use the
datefilter to format the timestamp.Tip: Use the <a href="/docs/api/liquid/filters/date"><code>date</code> filter</a> to format the timestamp.
The name of the custom template assigned to the article.
The name doesn't include the
article.prefix, or the file extension (.jsonor.liquid).If a custom template isn't assigned to the article, then
nilis returned.A timestamp for when the article was updated.
TipUse the
datefilter to format the timestamp.Tip:Use the
datefilter to format the timestamp.Tip: Use the <a href="/docs/api/liquid/filters/date"><code>date</code> filter</a> to format the timestamp.
Example
{
"author": "Polina Waters",
"comment_post_url": "/blogs/potion-notions/how-to-tell-if-you-have-run-out-of-invisibility-potion/comments",
"comments": [],
"comments_count": 1,
"comments_enabled?": true,
"content": "<p>We've all had this problem before: we peek into the potions vault to determine which potions we are running low on, and the invisibility potion bottle looks completely empty.</p>\n<p>...</p>\n<p> </p>",
"created_at": "2022-04-14 16:56:02 -0400",
"excerpt": "And where to buy <strong>more</strong>!",
"excerpt_or_content": "And where to buy <strong>more</strong>!",
"handle": "potion-notions/how-to-tell-if-you-have-run-out-of-invisibility-potion",
"id": 556510085185,
"image": {},
"metafields": {},
"moderated?": true,
"published_at": "2022-04-14 16:56:02 -0400",
"tags": [],
"template_suffix": "",
"title": "How to tell if you're out of invisibility potion",
"updated_at": "2022-06-04 19:27:33 -0400",
"url": {},
"user": {}
}