I’d like to only show the excerpt for the first post in my main query. I was wondering the best way to approach this.
What I have tried so far is:
- Making a custom homepage and using two queries, one that returns 1
post with an excerpt and another queries that returns posts without. - Just using the default queries but using css to hide the excerpts
for all posts but the first, usingnth-child
.
Both of these work well enough, but I was wondering if there was a better way to do this, through a function or filter.
Thanks!