[Resolved] [Plugin: WP-PageNavi] Trying to fix "Warning: You forgot to set the 'paged' query var
I am struggling with a peace of code which I can’t get to work in a page template.
I am trying to get all the posts with tags with the same name as the page. That is working however but on the second page of posts the error “Warning: You forgot to set the ‘paged’ query var.” appears and I can’t get more then 2 pages of posts to work.
While I am not a programmer I try to learn every day.
So could someone please check the following peace of code and tell me what is wrong?
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('tag='.basename(get_permalink()).'&post_status=publish,future&paged=$paged');?>
Thanks for any help!
- The topic ‘[Resolved] [Plugin: WP-PageNavi] Trying to fix "Warning: You forgot to set the 'paged' query var’ is closed to new replies.