Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Articles -->
- <div role="main">
- <h2 class="page-title">MOST RECENT</h2>
- <hr class="black">
- <?php $args = array(
- 'post_type' => 'post',
- 'post_status' => 'publish',
- 'category_name' => 'home',
- 'order' => 'DESC',
- 'posts_per_page' => 100,
- 'paged' => get_query_var( 'paged' ),
- 'offset' => 1,
- );
- ?>
- <?php $arr_posts = new WP_Query( $args ); ?>
- <?php if ( $arr_posts->have_posts() ) : ?>
- <div id="full-post-list" class="row between-xs">
- <?php while ( $arr_posts->have_posts() ) : $arr_posts->the_post(); ?>
- <div class="col-xs-12 col-md-5 mansory-card">
- <div class="box">
- <div class="row middle-xs">
- <div class="col-xs-12 col-md-12">
- <div class="box">
- <a href="<?php the_permalink() ?>">
- <?php the_post_thumbnail('large', array('class' => 'home-thumb-img')); ?>
- </a>
- </div>
- </div>
- </div>
- <div class="row middle-xs thumb-home">
- <div class="col-xs-12 col-md-12">
- <div class="box mansory-text-box">
- <span class="mansory-title"><a href="<?php the_permalink() ?>"><?php echo wp_trim_words( get_the_title(), 5, null ); ?></a></span>
- <!-- Funzione PHP per generare numero random di views (mt_rand(1000,2000)) più visite effettive. Da disattivare dopo un mese dal deployment-->
- <p class="mansory-details"><!-- POSTED BY <a class="author-name" href="<?php /* echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>"><?php the_author(); */?></a> | --><span class="mansory-category"><?php the_category(', '); ?></span> | <?php echo get_the_date('F j, Y'); ?><!-- | <?php /* echo (mt_rand(1000,2000)) + wpp_get_views(get_the_ID()); */ ?> <i class="far fa-eye"></i> --></p>
- <p class="mansory-excerpt"><span class="preview-excerpt"><?php echo get_the_excerpt() ?></span><span class="read-more"><a href="<?php the_permalink() ?>"> Read more</a></span></p>
- <hr class="gray">
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php endwhile; ?>
- </div>
- </div><!-- #Articles -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement