Skip to main content
Glama
article.md2.8 kB
# Liquid Objects: Article ## Overview An article represents a blog post within a blog on a Shopify store. ## Properties ### author **Type:** string "The full name of the author of the article." ### comment_post_url **Type:** string "The relative URL where POST requests are sent when creating new comments." ### comments **Type:** array of comment "The published comments for the article." Returns an empty array if comments are disabled. > **Tip:** Use the paginate tag to choose how many comments to show at once, up to a limit of 50. ### comments_count **Type:** number "The number of published comments for the article." ### comments_enabled? **Type:** boolean Returns `true` if comments are enabled. Returns `false` if not. ### content **Type:** string "The content of the article." ### created_at **Type:** string "A timestamp for when the article was created." > **Tip:** Use the `date` filter to format the timestamp. ### excerpt **Type:** string "The excerpt of the article." ### excerpt_or_content **Type:** string "Returns the article excerpt if it exists. Returns the article content if no excerpt exists." ### handle **Type:** string "The handle of the article." ### id **Type:** string "The ID of the article." ### image **Type:** image "The featured image for the article." ### metafields **Type:** untyped "The metafields applied to the article." > **Tip:** To learn about creating metafields, refer to Create and manage metafields or visit the Shopify Help Center. ### moderated? **Type:** boolean "Returns `true` if the blog moderates comments. Returns `false` if not." ### published_at **Type:** string "A timestamp for when the article was published." > **Tip:** Use the `date` filter to format the timestamp. ### tags **Type:** array of string "The tags applied to the article." #### Example: Show the total tag count When looping through `article.tags`, you can print how many times a tag is used with `tag.total_count`. This metric shows visitors how many blog posts share a particular tag. **Code:** ```liquid {% for tag in article.tags -%} {{ tag }} ({{ tag.total_count }}) {%- endfor %} ``` **Output:** ``` clear potions (1)potion troubleshooting (2)tips (2) ``` ### template_suffix **Type:** string "The name of the custom template assigned to the article." The name excludes the `article.` prefix and file extension (`.json` or `.liquid`). Returns `nil` if no custom template is assigned. ### title **Type:** string "The title of the article." ### updated_at **Type:** string "A timestamp for when the article was updated." > **Tip:** Use the `date` filter to format the timestamp. ### url **Type:** string "The relative URL of the article." ### user **Type:** user "The user associated with the author of the article."

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/florinel-chis/shopify-liquid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server