title: How to show pages on main category Magento
body: <p>I have a project on Magento, and I have a weird problem. I have a main category, let's call it <strong>Main 1</strong>. And this main category has several sub categories. Let's call them <strong>Sub1, Sub2, ...</strong>.</p>
  
  <p><strong>Main 1, Sub1, Sub2</strong> have products inside. I have like 50 products in total for <strong>Main 1</strong>.</p>
  
  <p>When I navigate to a subcategory, I have more products than I can see per page, so I have a pager.</p>
  
  <p><img src="https://i.stack.imgur.com/DpMN9.png" alt="enter image description here"></p>
  
  <p>But I don't know what happened on <strong>Main 1</strong>, that I can't see that pager. I have more products than I can see on <strong>Main 1</strong>, but I don't know what happened with the pager.</p>
  
  <p>I suppose that there's been some change that I don't know on that main category, but I can't figure out which one.</p>
  
  <p>So any ideas on how to recover that pager would be really appreciated.</p>
  
  <p>Thanks!</p>
  
  <p>This is my <strong>pager.html</strong>:</p>
  
  <pre><code>&lt;?php if($this-&gt;getCollection()-&gt;getSize()): ?&gt;
  
  &lt;?php if($this-&gt;getUseContainer()): ?&gt;
  &lt;div class="pager"&gt;
  &lt;?php endif ?&gt;
  
  &lt;?php if($this-&gt;getShowAmounts()): ?&gt;
  &lt;p class="amount"&gt;
      &lt;?php if($this-&gt;getLastPageNum()&gt;1): ?&gt;
          &lt;?php echo $this-&gt;__('Items %s to %s of %s total', $this-&gt;getFirstNum(), $this-&gt;getLastNum(), $this-&gt;getTotalNum()) ?&gt;
      &lt;?php else: ?&gt;
          &lt;strong&gt;&lt;?php echo $this-&gt;__('%s Item(s)', $this-&gt;getTotalNum()) ?&gt;&lt;/strong&gt;
      &lt;?php endif; ?&gt;
  &lt;/p&gt;
  &lt;?php endif ?&gt;
  
  &lt;?php if($this-&gt;getShowPerPage()): ?&gt;
  &lt;div class="limiter"&gt;
      &lt;label&gt;&lt;?php echo $this-&gt;__('Show') ?&gt;&lt;/label&gt;
      &lt;select onchange="setLocation(this.value)"&gt;
      &lt;?php foreach ($this-&gt;getAvailableLimit() as  $_key=&gt;$_limit): ?&gt;
          &lt;option value="&lt;?php echo $this-&gt;getLimitUrl($_key) ?&gt;"&lt;?php if($this-&gt;isLimitCurrent($_key)): ?&gt; selected="selected"&lt;?php endif ?&gt;&gt;
              &lt;?php echo $_limit ?&gt;
          &lt;/option&gt;
      &lt;?php endforeach; ?&gt;
      &lt;/select&gt; &lt;?php echo $this-&gt;__('per page') ?&gt;
  &lt;/div&gt;
  &lt;?php endif ?&gt;
  
  &lt;?php if($this-&gt;getLastPageNum()&gt;1): ?&gt;
  &lt;div class="pages"&gt;
      &lt;strong&gt;&lt;?php echo $this-&gt;__('Page:') ?&gt;&lt;/strong&gt;
      &lt;ol&gt;
      &lt;?php if (!$this-&gt;isFirstPage()): ?&gt;
          &lt;li&gt;
              &lt;a class="previous&lt;?php if(!$this-&gt;getAnchorTextForPrevious()): ?&gt; i-previous&lt;?php endif;?&gt;" href="&lt;?php echo $this-&gt;getPreviousPageUrl() ?&gt;" title="&lt;?php echo $this-&gt;__('Previous') ?&gt;"&gt;
                  &lt;?php if(!$this-&gt;getAnchorTextForPrevious()): ?&gt;
                      &lt;img src="&lt;?php echo $this-&gt;getSkinUrl('images/pager_arrow_left.gif') ?&gt;" alt="&lt;?php echo $this-&gt;__('Previous') ?&gt;" class="v-middle" /&gt;
                  &lt;?php else: ?&gt;
                      &lt;?php echo $this-&gt;getAnchorTextForPrevious() ?&gt;
                  &lt;?php endif;?&gt;
              &lt;/a&gt;
          &lt;/li&gt;
      &lt;?php endif;?&gt;
  
      &lt;?php if ($this-&gt;canShowFirst()): ?&gt;
          &lt;li&gt;&lt;a class="first" href="&lt;?php echo $this-&gt;getFirstPageUrl() ?&gt;"&gt;1&lt;/a&gt;&lt;/li&gt;
      &lt;?php endif;?&gt;
  
      &lt;?php if ($this-&gt;canShowPreviousJump()): ?&gt;
          &lt;li&gt;&lt;a class="previous_jump" title="" href="&lt;?php echo $this-&gt;getPreviousJumpUrl() ?&gt;"&gt;...&lt;/a&gt;&lt;/li&gt;
      &lt;?php endif;?&gt;
  
      &lt;?php foreach ($this-&gt;getFramePages() as $_page): ?&gt;
          &lt;?php if ($this-&gt;isPageCurrent($_page)): ?&gt;
              &lt;li class="current"&gt;&lt;?php echo $_page ?&gt;&lt;/li&gt;
          &lt;?php else: ?&gt;
              &lt;li&gt;&lt;a href="&lt;?php echo $this-&gt;getPageUrl($_page) ?&gt;"&gt;&lt;?php echo $_page ?&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;?php endif;?&gt;
      &lt;?php endforeach;?&gt;
  
  
      &lt;?php if ($this-&gt;canShowNextJump()): ?&gt;
          &lt;li&gt;&lt;a class="next_jump" title="" href="&lt;?php echo $this-&gt;getNextJumpUrl() ?&gt;"&gt;...&lt;/a&gt;&lt;/li&gt;
      &lt;?php endif;?&gt;
  
      &lt;?php if ($this-&gt;canShowLast()): ?&gt;
        &lt;li&gt;&lt;a class="last" href="&lt;?php echo $this-&gt;getLastPageUrl() ?&gt;"&gt;&lt;?php echo $this-&gt;getLastPageNum() ?&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;?php endif;?&gt;
  
      &lt;?php if (!$this-&gt;isLastPage()): ?&gt;
          &lt;li&gt;
              &lt;a class="next&lt;?php if(!$this-&gt;getAnchorTextForNext()): ?&gt; i-next&lt;?php endif; ?&gt;" href="&lt;?php echo $this-&gt;getNextPageUrl() ?&gt;" title="&lt;?php echo $this-&gt;__('Next') ?&gt;"&gt;
                  &lt;?php if(!$this-&gt;getAnchorTextForNext()): ?&gt;
                      &lt;img src="&lt;?php echo $this-&gt;getSkinUrl('images/pager_arrow_right.gif') ?&gt;" alt="&lt;?php echo $this-&gt;__('Next') ?&gt;" class="v-middle" /&gt;
                  &lt;?php else: ?&gt;
                      &lt;?php echo $this-&gt;getAnchorTextForNext() ?&gt;
                  &lt;?php endif;?&gt;
              &lt;/a&gt;
          &lt;/li&gt;
      &lt;?php endif;?&gt;
      &lt;/ol&gt;
  
  &lt;/div&gt;
  &lt;?php endif; ?&gt;
  
  &lt;?php if($this-&gt;getUseContainer()): ?&gt;
  &lt;/div&gt;
  &lt;?php endif ?&gt;
  </code></pre>