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-ski-deals.php
<?php $args = array( 'order' => 'asc', 'orderby' => 'title', 'posts_per_page' => 3, 'category_name' => 'ski-deals' ); ?> <?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 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 echo the_date($Published); ?> <?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