only the first post is shown


I want to show posts in index page but just the first one is shown!this is the code:

<div class="w3ls">
   <?php if(have_posts()):
      while (have_posts()) : the_post();
   <div class="col-md-6 w3ls-right wow fadeInDown"  data-wow-duration=".8s" data-wow-delay=".2s">
       <div class="tc-ch">
          <div class="tch-img">
             <a href="<?php the_permalink(); ?>"><img src="<?php the_post_thumbnail_url(); ?>" style=" width: 400px !important; height: 300px !important;" alt=""/></a>
            <h3><a href="singlepage.html">
                 <?php the_title(); ?>
                <h6>توسط <a href="singlepage.html">
                    <?php the_author() ?></a><?php the_date() ?></h6>
                    <p><?php the_excerpt(); ?></p>
                        <div class="bht1">
                           <a href="singlepage.html">ادامه مطلب</a>
                        <div class="soci">
                            <li class="hvr-rectangle-out"><a class="twit" href="#"></a></li>
                            <li class="hvr-rectangle-out"><a class="drib" href="#"></a></li>
                        <div class="clearfix"></div>
      <?php endwhile; ?>
      <?php endif; ?>
        <div class="clearfix"></div>

what is the problem?

hadis 3 years 2020-06-02T05:10:36-05:00 0 Answers 89 views 0

Leave an answer