stepfour
Member
Posted 2 years ago #
At the bottom of the blog above the footer the link "Keep Reading" for some reason it will go to the next page to load older post but the next page is exactly identical to the first page and doesn't load older posts.
Any ideas on what the problem could be and how to fix it?
Here is the website ( link is all the way at the bottom )
StepFour.net
Thank you!
One possibility is a custom query in your theme's index.php file that needs amending. Another possibility is a bad plugin. Have you tried deactivating all plugins to see if this resolves the problem?
stepfour
Member
Posted 2 years ago #
I tried deactivating the plugins that didnt help.
What do you suggest I do about the index.php file?
Drop a copy of the file into the WordPress pastebin and post the pastebin url here. Perhaps someone will be able to spot the problem and suggest a solution.
stepfour
Member
Posted 2 years ago #
Here is the Pastebin URL to our index page.
Pastbin Link
Try changing:
<?php query_posts('cat=-158&showposts=10'); ?>
to:
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('cat=-158&posts_per_pages=10&paged=' .$paged');
?>
stepfour
Member
Posted 2 years ago #
Got an error saying "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/stepfou1/public_html/blog/wp-content/themes/elements-of-seo/home.php on line 16"
stepfour
Member
Posted 1 year ago #
In case you haven't yet fixed this:
.$paged'); needs to be .$paged);