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">';
thesis_home_loop();
echo '</div>' . "\n" . '<div id="sidebars">';
thesis_build_sidebars();
echo '</div>';
}
}
remove_action('thesis_hook_custom_template','thesis_custom_template_sample');
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.