Frontpage Navigation doesn't work
November 2012 WordPress Theme
- GK User
- Tue Mar 05, 2013 12:02 am
Hi there,
as you can see, I turned the front page navigation on. I want so show five articles per page, the latest five on the frontpage. Unfortunately it doesn't matter which page I choose, it always shows the five latest articles:
http://www.janshealth.com/
http://www.janshealth.com/page/2
http://www.janshealth.com/page/3
Can you please help.
as you can see, I turned the front page navigation on. I want so show five articles per page, the latest five on the frontpage. Unfortunately it doesn't matter which page I choose, it always shows the five latest articles:
http://www.janshealth.com/
http://www.janshealth.com/page/2
http://www.janshealth.com/page/3
Can you please help.
-
- Fresh Boarder
- GK User
- Tue Mar 05, 2013 9:39 am
Hi,
Could you send me an FTP access to your website? I'll have to check it on your server, because on our test installation the pagination is working fine.
Could you send me an FTP access to your website? I'll have to check it on your server, because on our test installation the pagination is working fine.
-
- Administrator
- GK User
- Tue Mar 05, 2013 3:46 pm
Hi again,
Why you didn't wrote that you have modified the frontpage code?
You have code:
I've replaced it to:
and now it is working.
Why you didn't wrote that you have modified the frontpage code?
You have code:
- Code: Select all
<?php
if ( is_home() ) {
query_posts( 'cat=-158' );
}
?>
I've replaced it to:
- Code: Select all
<?php
if ( is_home() ) {
$paged = ( get_query_var('paged') ? get_query_var('paged') : 1 );
query_posts( 'cat=-158&paged=' . $paged );
}
?>
and now it is working.
-
- Administrator
- GK User
- Tue Mar 05, 2013 4:32 pm
Sorry, that's a good point, I forgot that. I included that code from codex.wordpress.org to exclude one category from the frontpage. I didn't consider, that it can have such an impact. Thank you so much for your help.
-
- Fresh Boarder
4 posts
• Page 1 of 1