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
Proxy Sites Proxy Tunnels Proxy List Working Proxy Sites Hotproxysite Proxy Sites Proxy Sites Anonymous Proxy Anonymous Proxies Top-Proxies.co.uk http://www.proxysitesnow.com Proxy Servers Free Proxies Free Proxy List Proxy List Zoxy Proxy List PR liste all proxy sites More Proxies netgofree netgofree Hide-MyIp - The Best Proxy List American Proxy List www.proxylisty.com/proxylist Web Proxy Submit Proxies Updated Proxy List Updated Proxy List aproxy.org Bypass Proxy Sites Free Proxies List Evolving Critic Business Web Directory Free Proxy List iShortIt MyProxyList Online Proxies Go Proxies Need Proxies PrivateProxies Proxies4MySchool Proxies4Work Free Proxy List Free Proxy Sites ProxyInside Wiksa Proxy ProxyLister.org Free Proxy List ProxyNoid Proxy List Free Proxy List Proxy Sites Proxy TopList ProxyVille UK Proxy WebProxy List RatedProxy.com - Listing the best Web Proxies Free Proxy List SchoolProxiesList Stay Anonymous Proxy List The Power Of Ninja Proxy List UNubstruct Free proxy sites Free proxy sites