I have always wondered how to get an extra column into wp. I normally just call the sidebar and footer from index.php as usual and then if I want a three column layout, put the two columns in the sidebar. e.g.
[/div][!-- end of id content--]
[/div][!--end of id wrapper--]
[!--index.php end--]
[!--include sidebar--]
<?php
get_sidebar();
?>Now we finish the index.php by telling it to call the footer:
[!--include footer--]
<?php
get_footer();
?>This is easy to implement but not very efficient. So how about this:
However, if I add this line after the call to the sidebar:
[!--include extra.php--]
<?php
include (TEMPLATEPATH . '/extra.php');
?>Why is this important? Well maybe the opening page is a three column layout which upon opening a post goes to a two column structure. Using the above will help that process.
By the way I have changed the <> brackets for [] just so it doesn’t break the site.
Thanks for reading.
Rich