• Resolved ubergiant

    (@ubergiant)


    I know wordpress has the static front page and posts page feature, but I couldn’t get what I wanted by doing that. What I’m trying to do is have a front page that has its entirely unique design with another page still listing the most recent 10 or so posts. Is this possible? How?

    One idea that I thought would work is to just make the frontpage myself and install the blog in a folder (though I’d prefer the blog to not be in a folder). To make this suit my needs, I would need to be able to insert the latest blog post, other new posts based on category into the page, plus recent comments into the frontpage created by myself.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ubergiant

    (@ubergiant)

    I think this would work if I could make the “front page” in the front page display settings use the index.php file in the template instead of the “posts page” using it. Why not just use the “posts page” as the “front page”? Because then my home page would be domain.com/postspage . I don’t know much about this so if any expert can provide their insight, I’d love your input.

    Thread Starter ubergiant

    (@ubergiant)

    I’ve figured it out. Use both front page settings – posts page and front page – then edit the template, e.g. page.php, and put a conditional statement for the front page.

    <?php if (is_front_page()) { ?>

    Entirely unique header, or whatever you want here.
    <?php } else { ?>

    Your typical page here.
    <?php }; ?>

    Thanks for this – its pure genius! 😀

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Create a Dynamic Front Page that Has a Unique Design’ is closed to new replies.