WordPress.org

Forums

Blog in non-root folder incompatible with Static Front Page? (6 posts)

  1. swinton
    Member
    Posted 9 years ago #

    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

  2. renaluelle
    Member
    Posted 9 years ago #

    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

  3. freelantz
    Member
    Posted 9 years ago #

    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.

  4. moshu
    Member
    Posted 9 years ago #

    You don't have to post this everywhere... (and the "above link" doesn't even work:)

  5. freelantz
    Member
    Posted 9 years ago #

    Everywhere? Two places... same topic.

    Above link works for me, dude:)

  6. zedlander
    Member
    Posted 9 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.