Pardon me, but I don't really understand how to go about getting the author's name and display picture? Shouldn't this be native since usually we accredit a blog post to its author and most of the time include their display picture?
Otherwise, I don't particularly understand the comment on "creating a unique custom type tag" I have referred to the post (Create a custom tagging system - FAQs - Prismic People). How do I go about creating custom tags?
I'm really looking for a solution that could show me a blog as such where it shows the display name and image. Thank you so much for the help!
To get the author's detail on the blog post, you need to do the following things:
Create a blog post and author documents in the Prismic.
Give the Content relationship field in the blog post Custom-Type. So in the blog post documents, you can use this field to link to the author's document.
Now, you need to use fetchLinks in your code. fetchLinks fetches a specific content field from a linked document. Find more detail here.
This is in javascript but you can find documentation in the different frameworks as well. What framework are you using?
You need to use fetchLinks in your code. In your fetchLinks array, the value should be:
First, the API ID of the custom type referenced in your content relationship field.
Then, the API ID of the field that you want to retrieve.
So, if you have a custom type called “post” that includes a content-relationship field called which link to a custom type called “author,” your query will be: