Display post by Tags Filtering & Combine multiple tags

Hello guys, is there any method to filter posts by tags? For example, having a dropdown menu or checkbox to filter posts by having specifics tags:

  • Posts with tagA + tagB + tagC.
  • Posts with tagA + tagC.
    It could be very useful for sites using as news portal. Thank you!

Please explain more.

1 Like

Yes this is easy using dynamic routing. Check the docs.

1 Like

There’s an add-on of Xenforo I really like is: Thread Filter by AddonsLab | XenForo community
It lets user filter posts with multiple tags. You can check the link above for more information @thimiraonline

@Caucasus-and-Mercury : I checked the docs wit dynamic routing, and see something interesting about “channel” - however, it’s not my case, since channel is more like a preset of tags. My need is user can choose whatever tags combination they want.

Thank you all for the replies!

You can do that with Dynamic routing. Can I help you?

Great! Please let me know how I can reach you out?

1 Like

This is how I did filter.

{{#get “tags” limit=“all” filter=“visibility:public+slug:tagA,tagB,tagC” include=“count.posts” order=“count.posts desc”}}

1 Like

Can someone explain to me how dynamic routing solves this problem? Maybe show an example UI? Thank you.

1 Like

Unless it’s a small number of tags and combinations, I don’t think it does.

I’d solve this problem by writing a bit of Javascript that asks the content API for posts with those specific tags. That way, as users pick the tags they want, you can grab the posts that fit from the API.


(using google translate from Slovene so some wording is kinda weird in the screenshot)

I’d like to have a filter where users can select multiple criteria. I currently use Squarespace and added a powerful filter plug-in (see screenshot). It works ok (it looks nice), but it’s clunky and I can’t automate posting from user-submitted resources via a Google form. So I’m looking to switch to Ghost. Do you know if this is possible on Ghost?

Is there a theme or developer that can help me?

I have tags for resources that fit under the criteria of:

“Category” the resource is useful for in youth development
(ie mental health, spiritual growth, games, admin, youth culture, events, etc.)

“Format” of the resource
(app/website, file, training, printed, video, etc.)

“Age” the resource is best for use with
(ie 11-14, 14-19, 19-24, 24+)

“Language” that the resource is available in
(ie Slovene (main site language), English, Ukranian, Russian, other)

“Creator” who created the resource (not author of the post or the person recommending the resource)

I have the code from the plugin from Squarespace. Maybe someone can help me switch that to Ghost? Where can I hire a ghost developer?

Do you want these to be Ghost posts, or just want to pull the data directly from a Google Sheet? It could be done either way, but you’re going to need custom code. (Here’s an example that pulls from a Google sheet: Share the Wealth)

Ghost isn’t going to automate taking user-submitted responses either. You’re going to need some third party glue for that.

I think, given that you have lots of different types of categories, and Ghost only has tags, that you may want to leave the content in a google spreadsheet, unless there’s a bunch of rich media not shown in your example above.

Make sense?

p.s. Ghost Experts

Hi Cathy, could you please elaborate on how to use google spreadsheet to create the Share the Wealth page.

This might help: Official Ghost + Google Docs Integration

Hey Roy, it’s a bunch of custom javascript that grabs the contents of the sheet and shoves it into cards in the user’s browser. You’re welcome to inspect the source and try adapting it for your own purposes.

Cathy