started from scratch because issue with theme. something about foreach() in index.php