WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to hide the content below when the user uses pagination to move from the initial page of the archive (page 1). Is there some way of detecting whether or not the current page is page 1? Content below needs to reappear if the user returns to page 1.

<!--Hide Me if not on page one-->
<div class="oneThirdColumn alignLeft"> <!-- Rigth Column -->
  <div class="colTopHeader">
    <h2>Filter Products</h2>
    <div class="clear"></div>
  <!-- Faceted Search -->
  <?php dynamic_sidebar( 'secondary-widget-area' ); ?>
</div> <!-- end Rigth Column -->
<!--Hide Me if not on page one-->
share|improve this question
up vote 1 down vote accepted

There is an example on the wordpress codex. (link). Basically you use an if statement on the variable $paged which stands keeps track of the current archive page.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.