Comments Chantelle started the conversationMarch 23, 2015 at 12:40pmHey there,Someone has just pointed out that the pagination at the bottom of our blog is acting strange.When you click 2 it takes you to a page about one of our projects, 3 is about admin costs and 25 is a 404.Any idea what's going on and why it's pulling in random pages of the site? Thanks! 8,850Tahir repliedMarch 23, 2015 at 7:02pmHey, Have you been able to recreate the issue ?. -T ThemeNectar Support Team Chantelle repliedApril 1, 2015 at 2:35amYep sure have - if you go to the link listed above and try and click on the pagination buttons at the bottom (1 / 2 / 3) it goes crazy.. sending you to all different pages across the site - not related to the blog! 8,850Tahir repliedApril 1, 2015 at 3:23pmHey, See screenshot: The page and the link seem to be different , did you change the page slug ?. Try repairing your database by following this: http://www.maketecheasier.com/fix-corrupted-wordpress-database-2/Thanks ThemeNectar Support Team [deleted] repliedMay 22, 2015 at 4:39pmI\'ve had a similar issue. Here is how I fixed it:Go to: Salient: Theme Functions (functions.php)Search down the page for \'pagination\' functiongot to the line: $format = empty( $permalink_structure ) ? $query_type.\'paged=%#%\' : \'page/%#%/\';add \"/\" before \'page/%#%/\' to read:$format = empty( $permalink_structure ) ? $query_type.\'paged=%#%\' : \'/page/%#%/\';This adds the forward slash so that any sub category posts page should now render the correct URLGood Luck Sign in to reply ...
Hey there,
Someone has just pointed out that the pagination at the bottom of our blog is acting strange.
When you click 2 it takes you to a page about one of our projects, 3 is about admin costs and 25 is a 404.
Any idea what's going on and why it's pulling in random pages of the site? Thanks!
Hey,
Have you been able to recreate the issue ?.
-T
ThemeNectar Support Team
Yep sure have - if you go to the link listed above and try and click on the pagination buttons at the bottom (1 / 2 / 3) it goes crazy.. sending you to all different pages across the site - not related to the blog!
Hey,
See screenshot:
The page and the link seem to be different , did you change the page slug ?.
Try repairing your database by following this:
http://www.maketecheasier.com/fix-corrupted-wordpress-database-2/
Thanks
ThemeNectar Support Team
I\'ve had a similar issue. Here is how I fixed it:
Go to: Salient: Theme Functions (functions.php)
Search down the page for \'pagination\' function
got to the line:
$format = empty( $permalink_structure ) ? $query_type.\'paged=%#%\' : \'page/%#%/\';
add \"/\" before \'page/%#%/\' to read:
$format = empty( $permalink_structure ) ? $query_type.\'paged=%#%\' : \'/page/%#%/\';
This adds the forward slash so that any sub category posts page should now render the correct URL
Good Luck