• I have trawled the web and I’m stuck so would appreciate any help…

    I have inherited a site with a custom version of 2010 theme that I have migrated from a single WP to my WP multisite installation (which was a bit of a nightmare!).

    The next page links from post pages now no longer work…
    There is a custom loop.php page that contains the code:
    <?php next_posts_link( __( ‘Next Page <span class=”meta-nav”>→</span> ‘, ‘LinksCustom’ ) ); ?>
    …which from the ‘domain.com/employers’ page produces the URL ‘domain.com/employers/page/2/’ which doesn’t work (404 error).

    The Permalinks are customised and set at: /%category%/%postname%/

    If I remove the ‘/%category%/ then the next page links work, but the rest of the site is broken, so this is not an option…

    Does anyone have any suggestions?

    Many Thanks,
    theWoosh

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter thewoosh

    (@thewoosh)

    Sorry – I forgot to ‘code’ the code – here it is again:
    <?php next_posts_link( __( 'Next Page <span class="meta-nav">&rarr;</span> ', 'GraduateLinksCustom' ) ); ?>

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    The Permalinks are customised and set at: /%category%/%postname%/

    If I remove the ‘/%category%/ then the next page links work, but the rest of the site is broken, so this is not an option…

    Broken how?

    Also whats in your .htaccess?

    Thread Starter thewoosh

    (@thewoosh)

    Hi Mika, thanks for responding…

    The structure of a lot of cusom code relies on the %category% as part of the address – as I inherited it I would not know where to begin to recreate this…

    the .htaccess file looks like this:

    # BEGIN s2Member GZIP exclusions
    <IfModule mod_rewrite.c>
            RewriteEngine On
            RewriteBase /wordpress/
            RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ [OR]
            RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1
            RewriteRule .* - [E=no-gzip:1]
    </IfModule>
    # END s2Member GZIP exclusions
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress
    php_value upload_max_filesize 50M
    php_value post_max_size 50M

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Just to check, can you try a different theme and see if the category links work there?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘next_posts_link not working – customised theme – WPMU’ is closed to new replies.