How can i get post by tag use for Content API Client Library


#1

i want to get post by tag use for Content API Client Library

const res = await $ghost.posts.browse({
  slug: params.slug,
  limit: 12,
  include: 'tags,authors'
})

I try many params but get all post not by tag


#2

i reslove
const res = await ghost.posts.browse({ filter: `tag:{params.slug}`,
page: 1,
limit: 12
})


closed #3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.