2019-06-04 column values within a few php loop

<section class="premium_top">

<div class="instructor-idx-read">

<div class="quote mb8">

<span class="tex-pink tex-small">VOICE OF STUDENTS</span>

<H2> voice of the students (protective bidder) </ h2>

</div>

</div>

<div class="introduction-wrap">


    $wp_query = new WP_Query(array(

    "posts_per_page" => '10',

    "post_status" => "publish",

    "category_name" => 'student_voice',

    'order' => 'ASC',

    "paged"          => $paged

    ));

    $color = ['blue_circle','green_circle','purple_circle','orange_circle']

    ?>    <?php $i=0;while (have_posts() ) : the_post();$i++;if ($i > 6) $i =0; ?>      <section class="round_area <?php echo $color[$i];?> link_base" >

<div class="student-name"><?php echo $post->post_title; ?></div>

<div class="class-content">

<?php the_excerpt(); ?>        </div>

<a class="link_overwrap" href="<?php the_permalink(); ?>"></a>

</section>

<?php endwhile; ?>    <div class="al-c mb30">

<?php the_posts_pagination( array(

      'mid_size' => 2,

      'Prev_text' => __ ( 'Back', 'textdomain'),

      'Next_text' => __ ( 'to the next', 'textdomain'),

      ) ); ?>    </div>

</div>

</section>

Guess you like

Origin blog.csdn.net/weixin_34162629/article/details/90846928