Dashboard
PHP:
8.0.30
OS:
Linux
User:
hoozgot
/
/
home
/
hoozgot
/
www
/
mountainpassions
/
!Backup
/
test-site
/
wp-content
/
themes
/
peakie-2016
📤 Upload
📝 New File
📁 New Folder
Close
Editing: loop-latest.php
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'order' => 'asc', 'orderby' => 'post_date', 'posts_per_page' => 6, 'post_status' => 'publish', 'category' => '0', 'paged' => $paged ); ?> <?php // the query $the_query = new WP_Query( $args ); ?> <!-- the loop --> <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?> <div class="postsbycategory-box"> <?php if ( has_post_thumbnail() ) {the_post_thumbnail( 'img-postsbycategory' ); } ?> <div class="postsbycategory-overbox"> <h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php if(get_field('feature_sub_title')) { echo '<h4>' . get_field('feature_sub_title') . '</h4>';} ?> <?php html5wp_excerpt('html5wp_index'); ?> <div class="read-more-container"> <div class="read-more"> <a href="<?php the_permalink(); ?>">Read More</a> </div> </div> </div> </div> <?php endwhile; ?>
Save
Cancel