Wordpress: Displaying Only on First Page of a Category/Archive


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php if ($paged < 2) { // if is page one ?>
  2. <p>This content will apear on the first page of a paged category/archive.</p>
  3. <?php } else { // optional ?>
  4. <p>This content will apear on subsequent pages.</p>
  5. <?php } ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.