Loop Wordpress

PHOTO EMBED

Thu Dec 23 2021 14:51:05 GMT+0000 (Coordinated Universal Time)

Saved by @tophercris_ #wordpress #loopw

<?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(); ?>
content_copyCOPY