featured image into a custom post
-
Hi does anyone know how i could link a featured image or thumbnail in the custom post query below its calling a excerpt but id also like to use the featured image from the post as well.
<?php $query = new WP_Query( array( 'post_type'=> 'Movies', 'Actors' => 'peter-smith', 'actress' => 'jane-smith' ) ); if( $query->have_posts() ) : while( $query->have_posts() ) : $query->the_post(); the_excerpt(); endwhile; endif; wp_reset_postdata(); ?>
- The topic ‘featured image into a custom post’ is closed to new replies.