Where should I put loop for new post in simple html template?

Discussion in 'PHP' started by Philip C. Ngo, Jan 29, 2014.

  1. #1
    I'm beginner in php in I want create index page with html .I know how can do it in wordpress with:
    <?php if(have_posts()) : ?>
    <?php while(have_posts()) : the_post(); ?>
    <?php endwhile; ?>
    <?php endif; ?>
    in a html template with static structure I don't know how is it true?
    in this image you can see my mean .


    [​IMG]

    please tell me your experiences
     
    Philip C. Ngo, Jan 29, 2014 IP
  2. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #2
    Haven't got a clue what you are on about. Also if you are looking at static html then this shouldn't be in php.
     
    stephan2307, Jan 29, 2014 IP