WordPress.org

Ready to get started?Download WordPress

Forums

Previous/Next Entries in /category/ view not working (11 posts)

  1. andy_ew
    Member
    Posted 3 years ago #

    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.

  2. Nerx
    Member
    Posted 3 years ago #

    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?

  3. andy_ew
    Member
    Posted 3 years ago #

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

  4. S.K
    Member
    Posted 3 years ago #

    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

  5. andy_ew
    Member
    Posted 3 years ago #

    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?

  6. andy_ew
    Member
    Posted 3 years ago #

    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]

  7. andy_ew
    Member
    Posted 3 years ago #

    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!

  8. andy_ew
    Member
    Posted 3 years ago #

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

  9. S.K
    Member
    Posted 3 years ago #

    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

  10. S.K
    Member
    Posted 3 years ago #

    @andy_ew

    Link to your blog?

    S.K

  11. andy_ew
    Member
    Posted 3 years ago #

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

    I bit.ly'd it to keep this off Google...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.