Running WP from two directories?
-
I’m running WP from CVS in my custom PHP-site and have used the
category_name
GET variable andlist_cats()
to segment my weblog and articles section (using two parent categories). Thus, when people go to/news/?category_name=Weblog
they get the weblog categories and when they go to/articles/?category_name=Articles
I want the articles category to be shown.I’m using a custom theme to embed WP in my site which works great. However, I want the layout to be different and the sidebar to disappear for the articles section. This is turning out to be tricky.
Softlinking
/articles
to/news
won’t cut it, since it’ll use the same custom WP template as news. I can create a customindex.php
which callswp-blog-header.php
, but that’ll also give me the same template. The best solution would be to be able to create a new template for articles and change templates on-the-fly (using GET), but WP doesn’t seem to support this. Short of ripping apart the WP call stack fromwp-blog-header.php
and inserting it all into my/articles/index.php
or doing another WP install, I’m at a loss.Can anyone help?
Thanks,
G.
- The topic ‘Running WP from two directories?’ is closed to new replies.