Want to hide particular odd div tag images and show even div images.like
I have
div1 div2 div3 div4 div5 div6 div7 div8 div9 div10 div11 div12
Now, I want to hide images that is on div1,div5,div9 and show only other div tags images in Wordpress using If condition or while loop.
How Do i do..
these is my code.
<div class="default-team">
<div class="medium-3 columns">
<h1><?php the_title();?></h1>
<a href="<?php echo get_the_permalink();?>">Click to View Bio</a>
</div>
</div>
<?php while ($query->have_posts()) : $query->the_post(); $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>
<div class="team-inner">
<div class="medium-3 columns">
<div class="team-img">
<img src="<?php echo $feat_image; ?>">
</div>
<div class="team-hover">
<a href="#">View Bio</a>
</div>
</div>
</div>
i want to hide "default-team" these div tag images and show "team-inner" these div tag images.
Aucun commentaire:
Enregistrer un commentaire