How to specify a size for the image displayed?
-
Hi Guys I want to know if I could specify a size for the image displayed in this code. Please help me!!!!
<?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $args = array( 'posts_per_page' => 1, 'posts_status' => array( 'publish', 'future' ), 'paged' => $paged, 'cat' => 15, ); // the query $the_query = new WP_Query( $args ); ?> <?php if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <div class=" display-posts-listing .listing-item"> <?php echo catch_that_image() ?> <?php the_content(); ?> </div> <?php endwhile; ?> <?php wp_pagenavi( array( 'query' => $the_query ) ); ?> <?php else: endif; ?>
Really thanks the help from keesiemeijer who helped me to get the code to this level!!!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to specify a size for the image displayed?’ is closed to new replies.