I'm developing a new theme for bludit, this theme is based on my html template.
I can't figure it out how to implement a way that my theme show's a static page in front and have a separate page for blog to show posts.
In fact front page is working but can't find a way for blog. Only way I can show the posts is to set "blog.php" for "home".
You can view my original template from here.
And link to my bludit testing website is here.
the code I use in my "index.php":
Code: Select all
<?php
if ($WHERE_AM_I == 'page') {
include(THEME_DIR_PHP . 'page.php');
} elseif ($WHERE_AM_I == PATH_ROOT . 'blog') {
include(THEME_DIR_PHP . 'blog.php');
} elseif ($WHERE_AM_I == 'home') {
include(THEME_DIR_PHP . 'home.php');
}
?>
hint: I'm not a php developer so I may miss something
Any suggestion?