Return to Snippet

Revision: 48512
at July 4, 2011 05:32 by DanielApt


Updated Code
<?php
/* Template Name: Portfolio Layout */
/* Description */

global $paged;

get_header();
query_posts("posts_per_page=1&paged=$paged");
if(have_posts()){
	while(have_posts()){
		the_post();
		the_title();
		the_content();
	}
}

get_footer();
?>

Revision: 48511
at July 4, 2011 05:30 by DanielApt


Initial Code
<?php
/* Template Name: Portfolio Layout */
/* Description */

global $paged;

get_header();
query_posts("posts_per_page=1&paged=$paged");
if(have_posts()){
	while(have_posts()){
		the_post();
		the_title();
		the_content();
	}
}
?>

<?php
get_footer();
?>

Initial URL


Initial Description
I can't access the global $paged variable.

Initial Title
WordPress Paged

Initial Tags
php, wordpress

Initial Language
PHP