• Resolved martyz

    (@martyz)


    I attempted to upgrade my friend’s site to WP 2.5 — i have a “blog.php” file setup in my themes directory, per the instructions from the WordPress Codex. After upgrading, now it just shows one post in the blog and none of the others.

    Has anyone resolved this?

    Here is the code I have in my blog.php file in my themes directory:

    <?php
    /*
    Template Name: Blog
    */
    
    // Which page of the blog are we on?
    $paged = get_query_var('paged');
    query_posts('cat=-0&paged='.$paged);
    
    // make posts print only the first part with a link to rest of the post.
    global $more;
    $more = 0;
    
    //load index to show blog
    load_template(TEMPLATEPATH . '/index.php');
    ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter martyz

    (@martyz)

    I’m an idiot. It might have been me that did this, but I’m not sure — but some setting didn’t ‘stay’ — here’s what I did wrong — maybe this will help some of you.

    If you keep your blog separate from the rest of your website, after upgrading, make sure you go to: Settings >>> Reading in the WP Admin.

    At the first item Front Page Displays underneath the A static page (select below) radio button — make sure that Posts Page is set to where you want your blog to link to. So for example — if you go to yourwebsite.com/blog to get to your blog — make sure that the page blog is chosen.

    Hope that helps!

    I just tried the same thing on my test site, and while /blog works, /blog/page/2 returns a 404.

    Does the site you were working on do the same?

    dan13|, I am experiencing the same problem. Have you found a solution for this yet?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Static Home Page / Separate Blog — Broken in 2.5’ is closed to new replies.