wp pagenavi error
-
In wp page navi plugin,it shows only first.second page onwards it show 404 error.my url is like this:http://MYSITE.com/page/2/..Is this url issue??how can i rectify this?URGENT
-
If you have a query on your loop you have to use wp-pagenavi this way:
http://scribu.net/wordpress/wp-pagenavi/wpn-2-74.htmli already tried this..its not working..actually i have given url as http://MYSITE.com/page/.it will show the first page with all posting..
when i click on second page my url is:http://MYSITE.com/page/2/ it will be a 404 errorCan you paste and submit the full code of the template with wp-pagenavi into a pastebin.com and post the link to it here? see the Forum Rules for posting code and using the pastebin.
Try it with this: http://pastebin.com/L1hJrTzJ
no dear..its showing the same issue
is this on a static front page?
no dynamic..in index page,there shows view post..and for more post one link is there like this inside href tag <?php echo $home.’/2012′;?>..it goes to archive page,url is http://MYSITE.com/2012/ this is working.next page onwards 404 error
it goes to archive page,url is http://MYSITE.com/2012/
Sorry for all the questions, but is the pagination not working on your home page or on an archive page?
Can we have a link to your site to see what is going on?
WP-PageNavi works when substituting the next/prev links properly per the plugin author’s clear instructions.
Note, you may need to change many default template files such as single.php. archive.php, page.php, category.php etc…also, many themes have plugin support for Wp-PageNavi, review that with theme dev. (through theme options)
archive page,its in localhost
So, if I’ve got this correct you want to show 20 posts per page on a yearly archive?
What theme are you using?yes..i have so many post from 2002 to 2012,need to show 20 post per page
I accidentally linked my .com web address with my blog instead of .co.uk, i switched all the info i changed back around but now i get this [link removed] instead of my site homepage, I have no idea how to fix it so i can then go on to build my site (or at least try), any help will be much appreciated, thanx x
Try it without the query post in the template file: http://pastebin.com/hyfy9Mps
and with this in your theme’s functions.php:
function my_archive_query( $query ) { // not an admin page and is the main query if (!is_admin() && $query->is_main_query()){ if(is_archive() && is_year()){ $query->set('posts_per_page', 20); } } } add_action( 'pre_get_posts', 'my_archive_query' );
The topic ‘wp pagenavi error’ is closed to new replies.