Support » Fixing WordPress » Blog in non-root folder incompatible with Static Front Page?

  • I am using WordPress as a CMS, following the instructions <a href=http://codex.wordpress.org/Pages#WordPress_as_a_CMS>here</a>.

    I’ve downloaded the <a href=http://www.semiologic.com/projects/static-front>Static Front Page plugin</a> and have set it up successfully.

    I would also like the blog section of the site to appear in a non-root folder, i.e. http://example.com/blog. I’ve followed the instructions under the CMS setup instructions (first link above) and have found that this only works when the Static Front Page plugin is disabled.

    Is there any way of making this work? i.e. I want a static front page, ideally managed as a Page within WordPress, and also have the blog under a non-root folder at the same time.

    Many thanks,
    Steve

Viewing 5 replies - 1 through 5 (of 5 total)
  • Steve,
    FYI… I was also trying to achieve this, but ended up having to move wordpress back to my root folder. I posted to a different section of this forum (tag:semilogic) and got a response from the developer of the Static Front Page plugin but no workaround was offered.

    I ended up giving up and moving wordpress back to the root folder. Hope you have better luck.

    -renaluelle

    I found a solution but it does not involve Static Front Page. I’m using Get-A-Post (http://tinyurl.com/qyqsj).

    Create a page called Home and attach a template called home.php like this:

    < ?php
    /*
    Template Name: home
    */
    ?>

    < ?php get_header(); ?>

    <div id=”content” class=”narrowcolumn”>

    < ?php get_a_post(‘5’); ?>

    < ?php the_content(); ?>

    </div>

    < ?php get_sidebar(); ?>

    < ?php get_footer(); ?>

    Then create a page called Blog and attach the index.php for a template.

    Note: I had a problem and had to edit the plugin. See my comments at the above link.

    You don’t have to post this everywhere… (and the “above link” doesn’t even work:)

    Everywhere? Two places… same topic.

    Above link works for me, dude:)

    Ok, it seems that going to the root of my WordPress install will show a page with slug home…I’m not using the static front-page install. So, I have a home template of my main page, and then a /blog/ page, with a blog.php template of:


    <?php
    /*
    Template Name: Blog
    */
    ?>

    <?php query_posts('cat=-0'); //gets all posts
    load_template( TEMPLATEPATH . '/index.php'); //loads index
    ?>

    Works like a charm!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Blog in non-root folder incompatible with Static Front Page?’ is closed to new replies.