Skip to main content
Tweeted twitter.com/#!/StackWordPress/status/42047223583870976
edited body; added 1 characters in body; added 12 characters in body
Source Link
markratledge
  • 8.7k
  • 6
  • 40
  • 62

Is it possible to get paged outside of the standard WP loop?

I already use this inside the loop:

<?php if ( $paged <>= 2 ) { ?>  Some text for the 2nd page on up  <?php } ?>

But I'd like to be able to echo some text outside the loop on all pages two and greater. Possible? Or a better way?

Is it possible to get paged outside of the loop?

I already use this inside the loop:

<?php if ( $paged < 2 ) { ?>  Some text for the 2nd page on up  <?php } ?>

But I'd like to be able to echo some text outside the loop on all pages two and greater. Possible? Or a better way?

Is it possible to get paged outside of the standard WP loop?

I already use this inside the loop:

<?php if ( $paged >= 2 ) { ?>  Some text for the 2nd page on up  <?php } ?>

But I'd like to be able to echo some text outside the loop on all pages two and greater. Possible? Or a better way?

Source Link
markratledge
  • 8.7k
  • 6
  • 40
  • 62

Get paged outside of loop?

Is it possible to get paged outside of the loop?

I already use this inside the loop:

<?php if ( $paged < 2 ) { ?>  Some text for the 2nd page on up  <?php } ?>

But I'd like to be able to echo some text outside the loop on all pages two and greater. Possible? Or a better way?