Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <section class="container">
- <h1 class="display-4 text-center mt-4">Day by Day</h1>
- <div class="card-deck mt-5">
- <?php
- $args = array(
- 'post_type' => 'film',
- 'posts_per_page' => 8
- );
- // La Query
- $aap_the_query = new WP_Query( $args );
- // Il Loop
- while ( $aap_the_query->have_posts() ) :
- $aap_the_query->the_post();?>
- <div class="card card-news">
- <?php the_post_thumbnail('aap_locandina', array('class' => 'img-fluid mb-4', 'alt' => get_the_title()));?>
- <div class="card-body">
- <h5 class="card-title"><?php the_title();?></h5>
- <p class="card-text"><a href="<?php the_field('link_rassegna'); ?>"><?php the_field('link_rassegna'); ?></a></p>
- <p class="card-text"><a href="<?php the_field('link_luogo'); ?>"><?php the_field('link_luogo'); ?></a></p>
- <p class="card-text"><i class="far fa-calendar-check"></i> <?php the_field('data'); ?></p>
- <p class="card-text"><i class="far fa-clock"></i> <?php the_field('ora'); ?></p>
- </div>
- </div>
- <?php endwhile;
- // Ripristina Query & Post Data originali
- wp_reset_query();
- wp_reset_postdata(); ?>
- </div>
- </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement