WordPress.org

Ready to get started?Download WordPress

Forums

Display category posts on page (2 posts)

  1. lewishuxley
    Member
    Posted 3 years ago #

    I would like to display one latest post from one category in full on a static page.

    How do i do this?

    Thank you.

  2. stvwlf
    Member
    Posted 3 years ago #

    This article is old but still relevant
    http://wpgarage.com/code-snippets/display-posts-from-specific-categories-on-a-page/

    Your query_posts would be something like this

    <?php query_posts('category_name=my-category&posts_per_page=1'); ?>

    Also see this
    http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

Topic Closed

This topic has been closed to new replies.

About this Topic