Categories
General

WP blog in a folder

Let’s say you don’t want your home page to be your weblog for some reason. You still want it to use the same style stuff as the rest of your blog though, and it’d be nice if you could manage your homepage as a WP Page. Here’s how to do it:

  1. Edit Options:Permalinks, adding the name of your blog folder to the front of the permalink code, something like this: /blog/%year%/%monthnum%/%day%/%postname%/
  2. Create your main page as a Page, noting its ID on the Manage screen.
  3. Install the Page to Front plugin, giving it your main page’s ID.
  4. Make a new template page like the Archives template, but with The Loop. Add this just above The Loop in your template: < ? php query_posts("showposts=10"); ?>
  5. Create a page that uses the new template, naming its post slug with the name of the folder you want your blog to be in.

Pretty complicated! There really should be a plugin that does all this…

Avatar photo

By isaac

I like cats. he/him