Okay
  Public Ticket #398675
Problem with Blog Pagination
Closed

Comments

  • Chantelle started the conversation

    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!

  •  8,850
    Tahir replied

    Hey,

    Have you been able to recreate the issue ?.

    -T


    ThemeNectar Support Team 

  • Chantelle replied

    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!

  •  8,850
    Tahir replied

    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 

  • [deleted] replied

    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