WordPress.org

Ready to get started?Download WordPress

Forums

List of categories and posts on front page (3 posts)

  1. slgavin
    Member
    Posted 4 years ago #

    Hi
    I'm looking to modify the home page of a WP site to include a list of categories and posts. I have done lots of searching and playing around with this but havn't hit on a solution yet due to my non coding skills!

    I would like the new element to look like this
    HEADER
    NAV

    CAT 1___________________________CAT 2
    * post a (5 comments)* post a (5 comments)
    * post b (2 comments) * post b (2 comments)
    CAT 3___________________________CAT 4
    * post a (5 comments) * post a (5 comments)
    * post b (2 comments) * post b (2 comments)

    START STANDARD CONTENT

    I have been playing around with the list all posts plugin which allows me to do this on a page, but I can't insert the functions in a template file. So I think I need someone to offer me up some nifty PHP code.

    Any ideas?
    Thanks in advance.

  2. slgavin
    Member
    Posted 4 years ago #

    Something like this achieves what I want but I am not able to break it up into two columns....any ideas? http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/

  3. MichaelH
    Member
    Posted 4 years ago #

    Idea on the css side:
    http://www.wprecipes.com/how-to-display-posts-in-columns
    http://www.google.com/search?q=wordpress+display+posts+in+columns

    Idea on multiple loops, but you will want to use the cat=x argument in each of your four loops to get the posts for each category.
    http://www.daobydesign.com/blog/2007/07/modifying-wordpress-front-page/

Topic Closed

This topic has been closed to new replies.

About this Topic