WordPress.org

Ready to get started?Download WordPress

Forums

custom homepage and link to recent articles (4 posts)

  1. holsum
    Member
    Posted 2 years ago #

    I'm creating a custom theme. On the homepage I create a custom query_posts so that it only shows articles that have the keyword tag "featured". Everything works just fine. Now I want to create a link on my site to display the 10 most recent articles (not just featured articles).

    Does anyone know how I would do this?

  2. hotplugin
    Member
    Posted 2 years ago #

    run another loop

  3. esmi
    Forum Moderator
    Posted 2 years ago #

  4. holsum
    Member
    Posted 2 years ago #

    I am using multiple loops. If it is on the home page, it loops through and only shows articles that have been tagged as "featured", if it is on a category page, it only shows articles that belong to that category.

    That part is easy, and it is easy to create a link to a given category, it's built into the the "Menus" options, but I need a way to create a link from "Menus" to all of the articles regardless of category.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.