• Skip to primary navigation
  • Skip to main content

Genesis Community

Resources for Genesis WordPress Theme Users

  • Facebook
  • Twitter
  • Slack
  • Wiki
  • Login
You are here: Home / Wikis / WordPress / Fix for WordPress 3.0 “paged” bug

Fix for WordPress 3.0 “paged” bug

// Fix for the WordPress 3.0 "paged" bug.

$paged = 1;

if ( get_query_var( 'paged' ) ) {
    $paged = get_query_var( 'paged' );
}

if ( get_query_var( 'page' ) ) {
    $paged = get_query_var( 'page' );
}

$paged = intval( $paged );
Notes:

Ex.: http://genesis.community/wiki/genesis_custom_loop-example/

Posted by: Sridhar Katakam Category: WordPress Tags: chinmoy kumar paul

« URL of Featured image
Dequeue CSS added by a plugin »

Copyright © 2026 · Genesis Sample on Genesis Framework · WordPress · Log in