Mystile Hello Sir, this is the link of the theme I want to add page number in recent products, So that when user click on page 2, more recent products would be shown and so on.
How can I add page no in recent products in wordpress
if you want pagination in recent posts use this code :
set you own variables in order by and order ..
<?php $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $pr_args = array( 'post_type' => 'properties', 'orderby' => 'post_date', 'order' => 'DESC', 'posts_per_page' => 10, 'paged' => $paged, 'meta_query' => ''); $the_query = new WP_Query($pr_args); ?>