WordPress.org

Ready to get started?Download WordPress

Forums

Latest posts for certain categories (2 posts)

  1. aganhuyag
    Member
    Posted 6 years ago #

    I began making WP themes a while ago. I can create blog designs with basic WP theme layout including: header, content, sidebar, footer.

    Now I wanna make something like news theme. I wanna display latest posts along with the recent ones for certain categories.
    For example, If I have three categories named Sports, News, Tech... It would display the latest post of each category on the homepage.. and display the titles and date(not the whole post) of the other recent posts underneath the latest post..

    I can make the design for it... but I don't know how to code it in php..

    Is there any template tag to display them or it should be achieved using some php codes?

    Thank you

  2. moshu
    Member
    Posted 6 years ago #

    Check out the Multiple Loops examples on this Codex page: The_Loop

Topic Closed

This topic has been closed to new replies.

About this Topic