I am sorry to post this but I have gone blind looking at it. I have entered this in my main index page
if (have_posts()) : while (have_posts()) : the_post();
// The following determines what the post format is and shows the correct file accordingly
Simple or so you would think. It does not work and I don't know why. I have tried
But that does not work either. The same code in a template file works fine. Can anyone stop me going mad!