How to create a list of blog categories using custom types in nextjs

Hey @magallen.fc.

At a glance, your code looks fine to me. Are you seeing any error messages?

Could you send a screenshot of what this code renders? Is there anything, or is the data wrong?

Could you also add a console.log(posts) to your category page and paste the ouput here, so we can see what data is coming back?

Sam

Sorry for the late response. I forgot to add the categories before calling the category. Now it's working.

filters: [prismic.filter.at('my.blog_post.categories.category', page.id)],

1 Like

Awesome!