I'm trying to build a message gallery page with a pagination. Messages and pagination are displayed correctly, but for some reason, the pagination will not show the page you clicked on and stays on page 1. Here's my code:
1 & # 39; post_per_page & # 39; => 8, & # 39; paginated & # 39; => $ paginated, ) $ the_query = new WP_Query ($ args); global $ wp_query; $ tmp_query = $ wp_query; $ wp_query = null; $ wp_query = $ the_query; if ($ the_query-> have_posts ()): while ($ the_query-> have_posts ()): $ the_query-> the_post (); ?>2)); wp_reset_postdata (); other: // no post code found end if; $ wp_query = null; $ wp_query = $ tmp_query; ?><a href = ""title ="">
<a href = ""title ="">
I've also been using query_posts before, but apparently, it's no longer good. Is the code I'm using now up to date and trouble-free in addition to faulty paging?