WordPress.org

Forums

[resolved] HELP! Per-category article lists (2 posts)

  1. jwilliams
    Member
    Posted 8 years ago #

    On my websites frontpage, /index.php, I'd like to have a list of the five most recent articles in the "frontpage" category.

    I think I need to create a loop on this page using WP functions that live somewhere in the main /blog/ directory.

    How do I get a list of the last five articles in a category to be displayed on my website other than on the main blog page!?

    Thanks!
    Jameson

  2. Kafkaesqui

    Posted 8 years ago #

    http://codex.wordpress.org/Creating_a_Static_Front_Page#Integrating_WordPress

    See that for how to make use of WordPress features on a non-WordPress PHP document.

    http://codex.wordpress.org/Template_Tags/query_posts

    See that for how to initialize a post loop. You can use it to set only one category, # of posts, etc.

Topic Closed

This topic has been closed to new replies.

About this Topic