• andy_ew

    (@andy_ew)


    The previous/next entries buttons on category-specific pages link to previous/next entries on the top-level blog: /index.php/page/2 rather than /category/innovation/page/2. Switching to the default theme does not fix the problem. This is using the default WP previous/next entries function. I’ve tried searching for this problem and haven’t found any posts — perhaps someone here can help? I’m using the Thesis theme.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Nerx

    (@nerx)

    I need to take a look at the Theme. WordPress’ database does not have a theme Called “Thesis” so I’m guessing it’s downloaded from somewhere else. Can you please send a link or something?

    Thread Starter andy_ew

    (@andy_ew)

    Here you go, sorry about that: http://diythemes.com/thesis/

    S.K

    (@kichu)

    Look for “posts_nav_link” at the bottom of the archive.php or category.php of your theme.

    Perhaps your theme has “next_posts_link and previous_posts_link()”. You may replace them with “posts_nav_link()”.

    For more information, visit: http://codex.wordpress.org/Function_Reference/posts_nav_link

    HTH

    S.K

    Thread Starter andy_ew

    (@andy_ew)

    Weird, I can’t find either of these files in the Thesis theme. That being said, I switched to the Twenty Ten theme and the problem persists. Any idea where else I can look for this code?

    Thread Starter andy_ew

    (@andy_ew)

    I believe I have found the section of theme code that dictates how Previous/Next Entries links are shown. Does this help diagnose the problem at all?

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter andy_ew

    (@andy_ew)

    S.K — I tried replacing the next_posts_link and previous_posts_link with post_navs_link but this did not fix the problem. The newly created “Previous Page” link still linked back to the main /index.php/page/2 rather than /category/innovation/page/2. Gah!

    Thread Starter andy_ew

    (@andy_ew)

    Whoops — broke the forum rules with that code. It can be seen here: http://pastebin.com/Chmw2gaV

    S.K

    (@kichu)

    That is only for single posts. May be there is another function for archives and pages of posts. You may look it up.

    S.K

    S.K

    (@kichu)

    @andy_ew

    Link to your blog?

    S.K

    Thread Starter andy_ew

    (@andy_ew)

    See links at the bottom of this category archive page: http://bit.ly/hyEsQI

    I bit.ly’d it to keep this off Google…

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Previous/Next Entries in /category/ view not working’ is closed to new replies.