Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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>
  </div>
  <!-- Faceted Search -->
  <?php dynamic_sidebar( 'secondary-widget-area' ); ?>
</div> <!-- end Rigth Column -->
<!--Hide Me if not on page one-->
share|improve this question

1 Answer 1

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

 
discard

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.