Dashboard
PHP:
8.0.30
OS:
Linux
User:
hoozgot
/
/
home
/
hoozgot
/
www
/
mountainpassions
/
winter
/
wp-content
/
themes
/
peakie-2015
📤 Upload
📝 New File
📁 New Folder
Close
Editing: loop-winter-activities.php
<?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $args = array( 'order' => 'asc', 'orderby' => 'title', 'category_name' => 'winter-activities', 'posts_per_page' => 12, 'paged' => $paged ); $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="overbox-linkbox"> <a class="overbox-linkbox-button" href="<?php the_permalink(); ?>">Read more</a> </div> </div> </div> <?php endwhile; ?>
Save
Cancel