[Plugin: WP-Property – WordPress Powered Real Estate and Property Management] the_post_thumbnail of
-
I am trying to show the featured image of one property, because I want to make a slider on my home page with the properties.
I am using
<?php $args = array( ‘post_type’ => ‘Property’, ‘posts_per_page’ => 10 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post(); ?><?php the_content(); ?>
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail();
}
?>
<?php endwhile; ?>I can see the content but not the thumbnail image.
If I try to do the same in Single property page it is working.
Can anyone help me? Thanks
- The topic ‘[Plugin: WP-Property – WordPress Powered Real Estate and Property Management] the_post_thumbnail of’ is closed to new replies.