Nice work @rafaelxy!
What is it, in this global variable "$wp_query", that fixes this issue?
<?php
global $wp_query;
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
$args = array(
'post_type' => 'CUSTOM_POST_NAME',
'product_category' => 'CATEGORY_NAME',
'posts_per_page' => 6,
'post_status' => 'publish',
'orderby' => 'menu_order',
'order' => 'DESC',
'paged' => $paged
);
$wp_query = new WP_Query($args);
while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
<a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a>
<?php endwhile; ?>
I am just trying to understand this, that's all. :-)
Thanks
Vayu