Well, Mike and I stayed up a bit working on the website. Though it looks
significantly the same, we've made some major structural changes to
improve the site's sustainability. We didn't think we should write an
announcement since there is really not much visible difference, but I
decided to now because I'm reading up on WordPress.
Some things to do:
1. Use WordPress functions to manage content display.
2. Use WordPress functions to perhaps manage navigation.
I have placed the following in head.php:
<?php
if (is_category()) {
print "<!-- THIS IS A CATEGORY -->";
} elseif (is_page()) {
print "<!-- THIS IS A PAGE -->";
} elseif (is_single()) {
print "<!-- THIS IS A SINGLE -->";
} elseif (is_search()) {
print "<!-- THIS IS A SEARCH -->";
} elseif (is_404()) {
print "<!-- THIS IS A 404 -->";
} else {
print "<!-- WTF IS THIS -->";
}
?>
The first four take care of what we've already implemented. The is_404
function currently uses our index.php (which isn't being used for
anything else but will replace our current templates).
As for an efficient means of managing navigation, I still don't have
much of an idea other than make all non-navigation pages children of
other pages.
|