kuanhsuh
Member
Posted 9 months ago #
I'm new to wordpress and i'm trying to install wp-pagenavi. So far it's showing the same post for every page and also the url change to http://localhost:8888/wordpress/page/2/ but the pagination still show page 1 of 2.
Here's my code.
[code moderated - for any code longer than 10 lines, please follow the guidelines in http://codex.wordpress.org/Forum_Welcome#Posting_Code ]
Please help me!
Pretty much appreciated it.
the query needs the 'paged' parameter for pagination:
try, for example:
<?php query_posts('showposts=2&cat=5, 6, 7, 8&paged='.get_query_var('paged')); ?>
see also:
http://scribu.net/wordpress/wp-pagenavi/wpn-2-74.html
kuanhsuh
Member
Posted 9 months ago #
hey alchymyth.
Thanks for your help! I tried and it's not working. I'm going to recode my query loop.
I think something wrong from my query code. I'll post up here if i have questions
Danny
kuanhsuh
Member
Posted 9 months ago #
hey alchymyth,
now i'm really stuck
Please refer to my code :
http://pastebin.com/rxSrhduw
i created a new loop based on
http://scribu.net/wordpress/wp-pagenavi/wpn-2-74.html
but my wordpress still only shows same post per page and pagination still show page 1 of 2.
Please Help.
Danny