Support » Fixing WordPress » Adding Blog to static page

  • I’m trying to make my blog’s homepage a combination of static content and a couple of recent block posts. I know that it’s supposed to work that way by changing a setting. But when I go to dashboard > settings > reading and select show static page and then select the page for the static setting and then the “posts” dropdown settings there are not any post pages to add. Just pages are listed — no posts.

    I’m using Twentyten theme.

    Am I missing something?

Viewing 15 replies - 1 through 15 (of 25 total)
  • You will need to use
    blog home page: static

    You will need to create this home page if you haven’t already. ( i call mine front page)
    You will need to add a query posts to the loop on this page:
    This is what I use, you may want to set up what posts are called differently. This only calls one post.

    <?php $temp_query = $wp_query; ?>
    <?php query_posts('showposts=1'); ?>
    <?php while (have_posts()) : the_post(); ?>
    	<div class="post" id="post-<?php the_ID(); ?>">
    	<h4><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h4>
    <?php the_post_thumbnail('front-page-post-thumbnail'); ?>  <?php the_excerpt(); ?>
    <?php endwhile; ?>

    also when i said create the page, I meant page template:
    copy and paste your themes page.php into a new file call it (for example) front-page.php
    and add this to the top of the new page template:

    Template Name: Front Page

    Then you create a wp Page and use this new template for it and call that in as your static page.

    The instructions say I can create a blank page. Then use the setting in “settings>reading” to do this.

    Do I need to create my own page template because of the theme I’m using?

    I tired it the way the WP instructions say to do it and it doesn’t work. So, I’ll try it your way.

    Thanks for the help.

    You could create a blank page but that wouldn’t have the additional query posts code in it to pull the posts you want into your front page.

    I do hope you are using a twentyten child theme??

    You lost me on “child theme” I’m using twentyten. Could you explain the Child Theme part?

    OK, I created a new php template page from the page.php file of my theme, I added the Template Name to the top of the page and saved it as home-page.php.

    But I’m fuzzy on where you suggest I put that code you posted in your first post. Does that go on my existing static home page? Or does that go in the blank page I created for my static page settings?

    I’m not at all clear where that code goes.

    No I don’t believe I’m using a child theme. Just plain old 2010.

    I tried putting the code in your first post in that home-page.php page. And I applied that template to my blank page which I’ve called “blog.” Then in Settings > reading I selected static page and selected the name of my static page and “blog” as my posts page.

    Still nothing. But I’m not at all sure if I’m getting your explanation correctly.

    Don’t edit the Twenty Ten theme. Instead create a child theme for your changes.

    Can either of you tell me why the proscribed method of using a blank page isn’t working? Does it not work with my theme? I’ve tried using other pages for my static page and using the blank “blog” page with the default template. But nothing below the static content shows up.

    Isn’t that supposed to be how most folks do this? If so, why wouldn’t it work on my blog?

    First up.. as Esmi says Don’t edit Twenty Ten use a child theme.
    It sounds like this is a new blog so go make a child theme for it.


    Can either of you tell me why the proscribed method of using a blank page isn’t working?

    What is it doing?

    A blank static page won’t have any posts on it.
    A blank static page is for you to code into it what you want there.

    It’s not a totally new blog. It’s been up and active for 9 months or so.

    The static content page is
    And the blog is at:

    You can see what it’s doing when you got to the homepage — it’s not showing the blog posts under the static content.

    I created a blank page name “blog” and here’s a link to a screen capture of my settings > reading page:

    That’s because you have configured WordPress to use a static front page rather than a posts page in Settings -> Reading.

    I want the most recent posts to appear under the static page content. That’s what this is all about. From what I read in the Codex I thought that this works.

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Adding Blog to static page’ is closed to new replies.