WordPress.org

Ready to get started?Download WordPress

Forums

Pagination on homepage not working but is on other pages (3 posts)

  1. RWSD
    Member
    Posted 2 years ago #

    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. ]

  2. RWSD
    Member
    Posted 2 years ago #

    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

  3. RWSD
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic