Replies: 1 comment 2 replies
-
Okay so I had a look at the definition of getCollectionItem and realized that it was comparing the Because I'm pulling my posts collection from WordPress, I don't have these 2 fields, so I decided to to make an alternative The next step was to redefine I don't know if I strictly HAD to do this, but I also moved my
With these changes, the next/previous navigation now works Here are the redefined getCollection-related definitions which now live in my
|
Beta Was this translation helpful? Give feedback.
-
I'm fetching some blog posts from a WordPress instance as described here: https://www.11ty.dev/docs/pages-from-data/
It works great, but I've found that I cannot use the
nextPost
andpreviousPost
technique described here https://www.11ty.dev/docs/filters/collection-items/ because apparently my blog posts do not get put into a collection.So my question is... how can I fetch dynamic data as shown here https://www.11ty.dev/docs/pages-from-data/ and also put that data into a collection?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions