所以,我有以下代码在Woocommerce中显示产品
$('#BackButton').on('tap', function(event) {
event.preventDefault();
$.mobile.changePage("homepage.html", {
transition: "fade",
reverse: false,
changeHash: false
});
teardown();
});
};
teardown(){
home.doc.unbindEvents();
}
我收到了<?php
get_header()
?>
<div class="rfp_hide" id="rhm_product_show">
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
'post_type' => 'product',
'paged' => $paged,
'posts_per_page' => 20,
'product_cat' => '',
'orderby' => 'date',
'order' => 'DESC'
);
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
global $product, $userpro, $post, $paged;
?>
<div class="rhm_indi_product rhm_profile_items">Contents</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
<nav>
<ul>
<li><?php previous_posts_link( '« PREV', $loop->max_num_pages) ?></li>
<li><?php next_posts_link( 'NEXT »', $loop->max_num_pages) ?></li>
</ul>
</nav>
</div>
,但内容没有变化,只显示相同的内容。
我做得对吗?
由于