I'd like to display 10 articles from "featured" category. Only the first should have title and excerpt, the rest 9 only titles. How'd I do that?
Many thanks for your help.
I'd like to display 10 articles from "featured" category. Only the first should have title and excerpt, the rest 9 only titles. How'd I do that?
Many thanks for your help.
Copyright © 2021 Jogjafile Inc.
When you are looping through the posts, just check if current
$post
in the loop is the first one in the return from theget_posts
function: