Adding a Blog Page to Thesis WordPress Theme

Many people wish to add a blog page to their page structure.  By doing so, you can have your cake and eat it too because the blog page will wind up in your navigation structure.

How to do it yourself:

1. Create a page called “blog”.

2. Choose custom template for the page template in the left sidebar when creating the page.

3. Leave the page blank — seems odd eh?

4. Open your custom functions file in the editor and add this:

function add_blog_page() {
if (is_page('blog')) {
$limit = get_option('posts_per_page');
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('' . $limit . '&paged=' . $paged);
echo '<div id="content">';
echo '</div>' . "\n" . '<div id="sidebars">';
echo '</div>';
add_action('thesis_hook_custom_template', 'add_blog_page');

Of course save your custom functions file.

If all is well it should work. Feel free to leave us a comment if it works well for you. This is a modification of the code found here for creating a featured category post page.

I hope you find this useful. If it presents too much of a problem for you or you want something close but different, we’d love to provide you with a project cost to suit your needs. Just contact us with our give us a hollar page.

This entry was posted in Thesis Theme. Bookmark the permalink.

6 thoughts on “Adding a Blog Page to Thesis WordPress Theme

  1. Hey DW…
    So, is the above used to create a second blog page? That’s what I need…one page for current, new posts, another for past articles written. I’d like to have two separate tabs, one for each…

    If you can let me know, that would be great. Thanks…

  2. Hi, need to create a second blog page, as I have actually made my home page the blog page. massive error I know, but I am wondering if you could help me to do this. Much appreciate your input. Thanks


  3. Great Tanks for this, it really works perfect for me. Now I just need to add few CSS to make the layout look total perfect.

Leave a Reply

Your email address will not be published. Required fields are marked *