Support » Fixing WordPress » Pagination on homepage not working but is on other pages

  • Hey guys,
    So I just got a site i’m working on up today and everything works perfectly locally but when I put the site up, paging doesn’t work on the home page. a 2nd page doesn’t even exist when I try to just type it in.

    site is ourvinyl.com

    code for home page is

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Let me know what you guys think, I have essentially the same code for all the other loops and they all work fine. Maybe it has something to do with the 2 loops on this page.

    Thanks for any help.

    [ Please do not bump, it’s not permitted here. ]

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

    (@rwsd)

    Ok, So I changed my permalink structure to default from %postname%, and it works! It doesn’t seen to work with any of the other options in the custom structure though.

    The problem is that I cannot change all the links for the entire site for SE and external linking reasons

    any ideas how I can fix this?

    Thanks

    Thread Starter RWSD

    (@rwsd)

    I looked into this page (bottom section on fixing paging issues) http://codex.wordpress.org/Using_Permalinks and that didn’t seem to help me either.

    so my htaccess file reads…

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    It’s very strange that this problem is only happening with the home page only and the others work fine.

    again, the local version of the site works perfectly. no problems.

    The loop on the homepage is this…

    <?php if(have_posts()) : ?>

    <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    query_posts(“category_name=album-reviews, concerts, ov-post, back-of-the-rack, interviews, ourvinyl-tv, song-of-the-day&page=$paged”); ?>

    <?php while(have_posts()) : the_post(); ?>

    Any ideas at all? please.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pagination on homepage not working but is on other pages’ is closed to new replies.