I have just upgraded my wp this morning and have tried to modify my index.php file…
Now I get this errorWarning: Invalid argument supplied for foreach() in /customers/deep-within.dk/deep-within.dk/httpd.www/index.php on line 8
Line 8 in my index is this:
<?php foreach ($posts as $post) { start_wp(); ?>
My entire index looks like this:
<?php include(“header.php”) ?>
<?php /* Don’t remove this line, it calls the WP function files ! */
$blog=1;
require_once(“wp-blog-header.php”);
?><meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<!– // loop start –>
<?php foreach ($posts as $post) { start_wp(); ?>
<?php the_date(“d.m.y”,”<b>”,”</b>”); ?>
<?php the_content(); ?><?php link_pages(“
Pages: “,”
“,”number”) ?>
posted by <?php the_author() ?> @ “><?php the_time() ?>
<?php comments_popup_link(“comments ?”, “1 comment”, “% comments”) ?>
<?php include (“wp-comments.php”); ?>
<?php } ?>
<? include(“footer.php”) ?>
Have I edited out too much code???: