Show collections on a page based on keyword

Topic summary

Goal: Automatically list specific collections on a page by keyword (e.g., show ~50 of 1,000 collections whose titles contain “poster”) instead of manually selecting them.

Proposed solution: Use a Liquid loop over all collections and filter with the “contains” operator on collection.title (e.g., check if the title includes “poster”), then render the matching collections. A brief code snippet was provided and is central to the approach.

Implementation note: This solution requires placing Liquid in a theme template/section. The requester wishes they could insert Liquid directly into page content without creating a dedicated template; no workaround was offered.

Open questions: No app-based solution or dynamic filter app was identified. How to achieve this without theme changes remains unanswered.

Status: Partially addressed. A workable Liquid-based method was given, but the desire for page-level insertion without a template and potential app alternatives remains open.

Summarized with AI on December 18. AI used: gpt-5.

Does anyone have an approach for showing collections on a page based on keyword?

For example, if I have 1,000 collections and I want to list 50 of them on a page that have keyword “poster” in their title, how can I do that?

Right now my theme has a nice widget for manually choosing collections to list on a page, but for 50 that’s a lot of tedious work. I’d like to automate this sort of thing.

Has anybody found an app for dynamically showing collections on a page based on filters?

Hi,

If you are referring to the main collection list we could use the liquid contains filter inside the collection for loop. For example

{%- for collection in collections -%}
  {%- if collection.title contains 'poster' -%}  
      - 

  {%- endif -%}
{%- endfor -%}

Thank you. That’s helpful.

I wish there was a way to insert Liquid code into page content without having to make a template just for that page.

1 Like

No problem, yeah that would be helpful.

If you need anything else just us know.

Kind regards, Liam