Custom post Types UI Not showing Thumnails
-
Hi
Can anyone tell me why my image/thumbnail isn’t rendering with the product_description and product_price which are displaying just fine?
Spent hours online and still can’t find a solution.
I’m using underscores.me and I’ve uncommented
add_theme_support( ‘thumbnails’ ); in functions.phpI tried creating a field in ACF called product_image but
<?php the_field( ‘product_image’ ); ?> doesn’t work either
Please help<?php
//Define your custom post type name in the arguments
$args = array( ‘post_type’ => ‘machina_product’, ‘posts_per_page’=>’3′,’order’=>’ASC’);
//Define the query based on arguments
$query = new WP_Query( $args );
//Display the contents
while ( $query->have_posts() ) : $query->the_post();
?><div class=”col-md-8 col-md-offset-2″>
<h3 class=”entry-title”><?php the_title(); ?></h3>
<p><?php the_field( ‘product_description’ ); ?></p>
<p><?php the_field( ‘product_price’ ); ?></p><?php the_post_thumbnail( ‘thumbnail’ ) ;?>
</div>
<?php endwhile;?>
- The topic ‘Custom post Types UI Not showing Thumnails’ is closed to new replies.