/ Published in: PHP
I can't access the global $paged variable.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?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(); ?>