Answer the question
In order to leave comments, you need to log in
What's wrong with pagination in Woo?
I can't figure out how to implement pagination here
<?php
$loop = new WP_Query( array(
'post_type' => 'product',
'posts_per_page' => '12',
'orderby' => 'menu_order',
'order' => 'ASC',
));
while ( $loop->have_posts() ): $loop->the_post(); ?>
<div <?php post_class("catalog-block"); ?>>
<a href="" class="image"><?php the_post_thumbnail("thumbnail-215x300"); ?></a>
<div class="name"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
<?php woocommerce_template_loop_price(); ?>
<?php woocommerce_template_loop_add_to_cart(); ?>
</div>
<?php endwhile; wp_reset_postdata(); ?>
Answer the question
In order to leave comments, you need to log in
What do you want to do? Wookomers already has all the templates, cycles, pagination, shortcodes. There is no need to invent anything
About ajax loading of posts/products on the network, there are tons of articles, videos and plugins
And the_post_thumbnail()
it does not accept what you pass into it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question