wp query – Pagination appears but does not work on the custom gallery page


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 (); ?>
<a href = ""title ="">

<a href = ""title ="">

2)); wp_reset_postdata (); other: // no post code found end if; $ wp_query = null; $ wp_query = $ tmp_query; ?>

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?



DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123