title: Getting page numbers while paginating wordpress posts page
body: <p>I'm trying to create some navigation with pictures of circles side by side for a posts page in Wordpress. Basically when it's the active page it needs to be a white circle and when it's not it needs to be a darker circle.</p>
  
  <p>I've got them all to display darker circles easy enough but am struggling with getting the active page. Simply changing the a:active css doesn't work.</p>
  
  <p>Is there a way to get the page number while paginating so I can give the links a different class e.g. activeCircle, when it is the active page. I've got the rest of the code figured out, just need an accurate way of getting the page I'm on.</p>
  
  <p>Have tried $_GET from the super global and $page so far which I've seen other people use. Neither seem to output anything.</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;div id="nav_numbers"&gt;
          &lt;?php
  
          for($i = 1; $i &lt;= (ceil(wp_count_posts()-&gt;publish / get_option('posts_per_page'))); $i++){
  
              $class = ($page == $i)?'class="activeDot"':'';
  
              ?&gt;
              &lt;a href="&lt;?php get_site_url(); ?&gt; /news/latest-news/page/&lt;?= $i;?&gt;/" &lt;?=$class;?&gt; &gt;&amp;nbsp;&lt;/a&gt;
              &lt;?php
          } ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The $page is the bit that doesn't work.</p>