• the static page feature is great, it means i can use wordpress in the slightly more ‘cms’-ish way i want to. however, here’s what i’d like to do…

    https://example.com = static page (non-wordpress)
    https://example.com/blog = blog home
    https://example.com/page1 = ‘static’ page (wordpress controlled)

    it looks to me like you can only have wordpress-controlled static pages below the blog home. i’m currently hacking the .htaccess files as i think i can get it to work, but this isn’t ideal, as i’d like non-technical users to be able to make updates (and add new static pages)

    any ideas how i can get this working, or should i be posting this in ‘request for new features’?

Viewing 2 replies - 1 through 2 (of 2 total)
  • When you figure this out, please let me know! I have tried do find out how Bahia Street (www.bahiastreet.org) did it, but no luck so far. I am very interested in managing my new site using WP as a CMS.

    Good luck with this!
    Greg KB

    For pages outside the WordPress *domain* you’ll need to manually create the templates for those pages as well as any links to them within your blog. First key to turning a standard PHP document into a WordPress one is to add this to the very top of the php file:

    <?php
    define('WP_USE_THEMES', true);
    require('./blog/wp-blog-header.php');
    ?>

    From there you can use all the standard WordPress functions and template tags. Just make sure the require has the correct path for wp-blog-header.php. At the root the above should work (with WP residing in blog/).

    Defining the constant WP_USE_THEMES as true should be obvious; just insert the various template include functions (get_header(), get_sidebar() and get_footer()) to make use of the active theme. Set WP_USE_THEMES to false if you don’t plan on using the theming features on the pages outside of your blog.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘static pages in a different location (higher) than blog home’ is closed to new replies.