Do you mean that if someone has other sections (such as an about page, gallery etc) they get called through the same index.php?
Thread Starter
matius
(@matius)
Sure, it really doesn’t matter how it is setup, one file would be the most efficient…but…
Say I had an index page, about page, services page, news page, links page…whatever.
With WP I can edit the index page (blog page) of course, but the other pages have to be static. I want to be able to edit every single page just like the blog…through the WP interface.
Ah, that would be great if someone had a way.
Well, with WP 1.3-alpha I have begun creating my own search page, archive page, etc. so looks like you are in luck.
Maybe this will help ? Taken from my actual index.php :
Original :
<? if ($posts) { foreach ($posts as $post) { start_wp(); ?>
My modification :
<? switch ($_GET["a"]) :
case "download" :
case "about" :
case "custom" :
case "links" :
case "stats" :
case "404" :
case "archives" :
$page = $_GET["a"] . ".php";
include $page;
break;
default :
echo "<!-- news -->";
?>
<? if ($posts) { foreach ($posts as $post) { start_wp(); ?>
And below everything related to printing posts, added :
<? endswitch; ?>
This way, I just edit or create pages such as “about.php” with no layout designing, they are integrated in my index.php instead of all the news items. So myblog.com/index.php prints the posts, myblog.com/index.php?a=about print the content of about.php within all your menus, headers and stuff.