I have created a custom Query that works perfectly with my custom post type, inside this custom post type I’m showing an archive with other custom post types: One is a city, and inside each city there will be shown the stores inside this city. THE PROBLEM When trying to apply some pagination (I do […]
Categories
Pagination not working wit custom Query
- Post author By Marcia D.
- Post date November 23, 2020
- No Comments on Pagination not working wit custom Query
- Tags 'meta_key' => 'store_client_type', 'meta_query' => array( array( 'key' => 'store_city', 'order' => 'DESC', 'orderby' => 'meta_value', 'paged' => $paged, 'posts_per_page' => 15, 'textdomain' ), 'textdomain' ) ); wp_reset_postdata(); wp_reset_query(); ?>, 'value' => $villeshow, ), )); $loop = new WP_Query( $custom_query_args ); if(have_posts() ): while($loop->have_posts()): $loop->the_post();, $loop->max_num_pages ); previous_posts_link( __( 'Newer Entries', and inside each city there will be shown the stores inside this city. THE PROBLEM When trying to apply some pagination (I do not want to sh, but groups of 15), but when trying any function or guide to do this nothing is appearing. <ul id="c, I have created a custom Query that works perfectly with my custom post type, inside this custom post type I'm showing an archive with other custom post types: One is a city