Grow your CSS skills. Land your dream job.

creating home page with loop, as well as secondary blog page

  • # October 22, 2009 at 2:43 pm

    Okay, so what I have now is a home.php that contains post excerpts in the middle div.
    Now, what I want is a link (the daily dose) that takes me to another page with the posts again, but the layout will be slightly different. Right now I have the index.php set up how I would like this "daily dose" page to be,

    but how do I link to the index.html when I have a home.php that defaults as the home page (which is fine).

    i’ve tried creating a custom page template, but it seems that pages do not display the loop in the template.
    I know how to create a "static" front page, but I want a front or home page with the loop, and another page that is just the blog. make sense?

    if you can point me in the right direction of how to go about doing this, that would be appreciated.
    hopefully i’ve been clear enough with my intentions/problem.
    thanks

    the site i’m working on: (don’t mind the colours, testing purposes only)
    http://www.wasatchendocrinology.com

    # October 22, 2009 at 4:59 pm

    Finally found a solution;
    I kept the index.php as home, then created a custome page template that included the loop, and more importantly, this little bit of code

    Code:
    < ?php query_posts('show_posts=5'); ?>

    above the

    Code:
    < ?php if (have_posts()) : ?>

    and that made the difference.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".