Created
April 22, 2015 15:49
-
-
Save generatepress/ef11bf8ff3a5292a9922 to your computer and use it in GitHub Desktop.
Show something on the first page of posts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; | |
// Only show if we're on the first page | |
if ( 1 == $paged ) { ?> | |
Anything inside here will only show up on the first page of posts | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment