Snippets Collections
<?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>
                    <?php endwhile;
                    wp_reset_query(); ?>

Thu Dec 23 2021 14:51:05 GMT+0000 (UTC)

#wordpress #loopw

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension