Sample Index.php to query all post
Description
This small code is to be placed in the index.php page if it is intended to be used as a blog. Be sure to change your wordpress reading settings to indicate what page is assigned to the index/post page
HTML Source Code
<!-- Post Starts -->
<?php
if (have_posts()) :
while (have_posts()) :the_post(); ?>
<!--Image Start-->
<!-- Post content goes here -->
<!--Post HTML Ends-->
<?php endwhile;
endif; ?>
<!-- Query all post end-->