The MU forums have moved to WordPress.org

Page Navigation (13 posts)

  1. omgitsrfb
    Member
    Posted 15 years ago #

    When I click on my main blog I'm directed to domain.com/blog -- no problemo yet.

    When I click any of the navigation buttons from that page (domain.com/blog) I get directed to domain.com/index.php/blog/page/2 and get the 'ol there's nothing here message. I tried removing the index.php in the address field (domain.com/blog/page/2) and I get the content from the first page again. Obviously this continues happening no matter what page number I try to access.

    Any ideas or suggestions would be greatly appreciated. I got a subdomain install.

    Thanks,
    Ricky

  2. andrea_r
    Moderator
    Posted 15 years ago #

    If it's stuffing the index.php in there, you may have typed that in a field somewhere. Look under the Site Admin -? Blog menu, edit the main blog, and check.

  3. omgitsrfb
    Member
    Posted 15 years ago #

    Thanks Andrea. I checked my blog admin section and the only thing i could find with index.php was in the permalink structure : /index.php/%year%/%monthnum%/%day%/%postname%/

    That shouldn't have anything to do with it, right? Also if I remove the index.php from the URL I get the same blog content on every page. Me confused badly.

    Could the page-navi function be stuffing this in there?

    Ricky

  4. omgitsrfb
    Member
    Posted 15 years ago #

    I forgot to add that pagination in archives woks just fine.

  5. kgraeme
    Member
    Posted 15 years ago #

    index.php shouldn't be in the permalink structure.

  6. omgitsrfb
    Member
    Posted 15 years ago #

    @kgraeme - thx. do i just remove that from the structure and everything works? or will that break existing links?

  7. omgitsrfb
    Member
    Posted 15 years ago #

    anyone can answer this, not just kgraeme

  8. andrea_r
    Moderator
    Posted 15 years ago #

    If it's in the permalinsk menu and you don't want it in there, then yes - take it out.

    If it still doesn't work right, you may have another issues going on.

  9. omgitsrfb
    Member
    Posted 15 years ago #

    ok, almost got it but something strange thing happened. i took index.php out of the permalink structure and now its just/%year%/%monthnum%/%day%/%postname%/. Click on posts and everything is fine.

    When I click on 'blog' on the navigation bar I get the first page of the blog at domain.com/blog. Yet now the page-navi buttons at the bottom of the blog are missing. But if I type in the URL domain.com/blog/page/2 it works brilliantly. both index.php, single.php have the following call for paginate.php so I;m not surew why it's the buttons aren't showing up.

    '<?php include (TEMPLATEPATH . '/paginate.php'); ?>'

  10. andrea_r
    Moderator
    Posted 15 years ago #

    Check and see if that's in the page.php template.

  11. omgitsrfb
    Member
    Posted 15 years ago #

    I don't have a page.php in my theme. I got single.php and index.php. Both have the '<?php include (TEMPLATEPATH . '/paginate.php'); ?>'

  12. omgitsrfb
    Member
    Posted 15 years ago #

    andrea,
    my paginate.php file looks like this:

    '<?php if (is_single()) { ?>
    <div id="post-navigator-single">
    <div class="alignleft"><?php previous_post_link('«%link') ?></div>
    <div class="alignright"><?php next_post_link('%link»') ?></div>
    </div>

    <?php } else if (is_page()) { ?>

    <div id="post-navigator">
    <?php link_pages('Page ', '', 'number'); ?>
    </div>

    <?php } else if (is_tag()) { ?>

    <div id="post-navigator">
    <div class="alignright"><?php next_posts_link('Older Entries « '); ?></div>
    <div class="alignleft"><?php previous_posts_link('» Newer Entries'); ?></div>
    </div>

    <?php } else { ?>

    <div id="post-navigator">
    <?php if (function_exists('custom_wp_pagenavi')) : ?>
    <?php custom_wp_pagenavi(); ?>
    <?php else : ?>
    <div class="alignleft"><?php posts_nav_link('',__('« Newer Posts'),'') ?></div>
    <div class="alignright"><?php posts_nav_link('','',__('Older Posts »')) ?></div>
    <?php endif; ?>
    </div>

    <?php } ?>'

    and I could email you the custom_wp_pagenavi code if you'd like to look at that.

  13. omgitsrfb
    Member
    Posted 14 years ago #

    still looking for an answer to this question....anyone got any ideas?

About this Topic

  • Started 15 years ago by omgitsrfb
  • Latest reply from omgitsrfb