Blog component that features X number of the newest posts #34271
-
I built a blog list component that I can call on any page. Right now it shows ALL my blog posts ,which is not a problem because I only have five. However, in a few weeks I may have a few hundred. So, I need to figure out how to only feature say the three newest ones. Query code here Anyone have suggestions (or maybe even an example) on how to make a component that only shows three (or any number really) of the most recent blog posts? Are there any plugins that would do that for me or do I need to code it all from scratch? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I've not your graphQL query, but you should look at |
Beta Was this translation helpful? Give feedback.
I've not your graphQL query, but you should look at
limit
field argument.