• Resolved adamheine

    (@adamheine)


    I didn’t realize until recently that WordPress was automatically paging my archives. So I added a ‘posts_nav_link()’ call so people can access the older pages. This seems to work fine from the default page, search results, and the monthly archives, but it isn’t working with the categories or author displays.

    When a user selects all posts within a category, or by a certain author, the first page comes up but clicking on the “Next Post” link brings back the result “Sorry, no posts were found that match your criteria.”

    Everything is using custom URI’s for the permalinks and archives. I am using WP 1.5.1.1 at the moment. I’m using a custom theme, but I’m fairly certain that I’m not doing anything complex with my call to ‘posts_nav_link()’ or with the category or author listings. Here’s my website if you want to look at it for yourself: https://firewatching.com/itsara/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter adamheine

    (@adamheine)

    Is it okay to bump after over a month with no reply? Sorry if it’s not, I really am trying to be patient.

    Thread Starter adamheine

    (@adamheine)

    I figured out what the problem was. I’m posting the solution here in case anyone else has the same problem.

    The issue was in the mod_rewrite rules (for me, they are in my .htaccess file in the main WordPress directory). It’s supposed to look something like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /itsara/
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [S=50]
    RewriteRule ^(about-us)/feed/(feed|rdf|rss|rss2|atom)/?$ /itsara/index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(about-us)/(feed|rdf|rss|rss2|atom)/?$ /itsara/index.php?pagename=$1&feed=$2 [QSA,L]
    ...
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([^/]+)/trackback/?$ /itsara/index.php?year=$1&monthnum=$2&name=$3&tb=1 [QSA,L]
    </IfModule>
    # END WordPress

    Mine had extra rules before “#BEGIN WordPress“. I bet they were hang overs from before I upgraded to WP 1.5. In any case, they were interfering with the rules below that did paging properly. All I had to do was delete everything before “#BEGIN WordPress” (though not without making a backup, just in case!).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Paged archives not working with categories?’ is closed to new replies.