<?php $recent = new WP_Query("posts_per_page=-1&cat=26&orderby=title&order=ASC"); while ($recent->have_posts()) : $recent->the_post(); ?> <div class="col-sm-5 col-md-3"> <div class="thumbnail" style="text-align:center;"> <a class="logosSocios" target="_blank" href="<?php the_field('enlace') ?>"><span><?php the_post_thumbnail('', ['class' => 'img-responsive center-block']); ?></span></a> <div class="caption"> <!-- <h4><?php the_title(); ?></h4> --> <a class="btn btn-primary btn-socios" style="color: white; border-color: #fff;" href="<?php the_field('enlace') ?>" target="_blank" rel="noopener noreferrer"><?php the_title(); ?></a> </div> </div> </div> <?php endwhile; wp_reset_query(); ?>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter