{"title":"only - Liquid Filter Reference","slug":"only-filter-reference","url":"https://support.storeconnect.com/articles/only-filter-reference","url_markdown":"https://support.storeconnect.com/articles/only-filter-reference.md","subtitle":null,"summary":"Filters a list to include only items where a property matches one or more specified values. Use `only` to narrow a collection by category, type, or status.","type":"Developer_Documentation","video_url":"","keywords":"liquid, filters, only, lists, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nReturns all items in the list where the supplied property equals one of the supplied values\n\n| Property | Value |\n|----------|-------|\n| **Return Type** | list |\n| **Category** | lists |\n\n## Examples\n\n\n```liquid\n\n{{ products | only: \"type\", \"whitegoods\" | map: \"name\" | join: \", \" }}\n```\n\n\n**Output:** `Fridgetastic 3000, Coldinator 500`\n\n\n```liquid\n\n{{ products | only: \"type\", \"whitegoods\", \"computers\" | map: \"name\" | join: \", \" }}\n```\n\n\n**Output:** `Fridgetastic 3000, Coldinator 500, Geronimo 9000, Y2K Amaze`\n\n\n```liquid\n\n{{ products | only: \"name\", \"Y2K Amaze\" | map: \"name\" | join: \", \" }}\n```\n\n\n**Output:** `Y2K Amaze`"}