CPT UI pagiantion and thumbnails
-
Hi folks. Spent hours and hours trying to find a solution for this. The image with each CPT just refuses to display. I’m using Underscores theme and the add_theme_support is uncommented.
Also, is there a simple way of adding pagination to this. Please help. project to be handed in on Monday. Thanks in advance, Tommy<?php
//Define your custom post type name in the arguments
$args = array( ‘post_type’ => ‘machina_product’, ‘posts_per_page’=>’3′,’order’=>’ASC’);//Define the loop 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 productsContainer”>
<h3 class=”entry-title”><?php the_title(); ?></h3>
<?php the_field( ‘product_image’ ); ?>
<p><?php the_field( ‘product_description’ ); ?></p>
<p><?php the_field( ‘product_price’ ); ?></p>
<div class=”productImage”></div>
</div>
<?php endwhile;?>
- The topic ‘CPT UI pagiantion and thumbnails’ is closed to new replies.