[wp-hackers] prevent indexing of page 2,3 and so on

Andrew Nacin wp at andrewnacin.com
Fri Oct 22 20:31:07 UTC 2010


On Fri, Oct 22, 2010 at 4:22 PM, Charles K. Clarkson
<cclarkson at htcomp.net>wrote:

>    $current_page = get_query_var('paged') ? get_query_var('paged') : 1;


Per http://codex.wordpress.org/Conditional_Tags:
if ( is_home() && is_paged() )


More information about the wp-hackers mailing list