• I’m looking at some other WP based sites and with some thier blog is in http://www.x.com/blog/ while thier about me info(or whatever) is in http://www.x.com/aboutme/ or something like that but it all has the same template. Now i wonder do you need to install WP in all that folders or? I just have everything in /blog/ but now i wonder if its better to put content in different folders like i did mention before?

    Not that i want to change my template now, i’m too happy with it..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The key to turning any PHP file into a WordPress template is to include the wp-blog-header.php file. With something like this at the top of your document:

    <?php
    require('../blog/wp-blog-header.php''); ?>
    ?>

    you can then make use of any WordPress template tag or function. (Just make sure the path to wp-blog-header.php is correct.)

    One trick for creating such a template is to make a copy of your current theme’s index.php, insert the above code at the top, and remove/add/edit what you want. You could use this as the index.php for your aboutme/ directory.

    Thread Starter pucca

    (@pucca)

    I’m doing this now but what about the footer and sidebar?

    I think that what Pucca is referring is caused by sites using the ‘nice permalinks’ option in wordpress, under options somewhere. This causes your url’s to point to somwhere else, but that somewhere else doesn’t exist. Those are just nice names.

    If you really want to put your content next to wordpress instead of inside wordpress, that’s what I’ve done with my site.
    /site/wordpress and /site/weblog/archives etc.

    And then use Kafkaesqui’s code to point to the blog-header file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP in different folders’ is closed to new replies.