WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] No pagination on 2.3.2? (21 posts)

  1. vogelap
    Member
    Posted 6 years ago #

    I've noticed that the page navigation does not appear on the index page of my site (www.drewvogel.com) since I upgraded to 2.3.2.

    However, if I SEARCH for a term (say, "Recipe") from the index page's search box, the page navigation appears on the results page. But it doesn't appear anywhere else (front page, categories, etc).

    I thought it might be my theme (Tarski) but with Ben's help have determined that it is not the theme's issue (this issue occurs with any WP theme).

    I am not sure how to proceed -- where to look for the solution -- and would appreciate any guidance.

  2. moshu
    Member
    Posted 6 years ago #

    I can see your Pages list both in the top horizontal menu bar and in the sidebar.

  3. vogelap
    Member
    Posted 6 years ago #

    Thanks for the reply, Moshu... I don't think I was clear enough in my original message.

    If you visit http://www.drewvogel.com/page/2?s=recipe , see the "« Previous results § More results »" at the bottom of the page.

    Something similar used to appear at the bottom of the front page (and, in fact, EVERY page where appropriate) of my site -- http://www.drewvogel.com . It doesn't anymore since upgrading to 2.3.2.

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Do you have the next_posts_link and previous_posts_link calls in your theme's index.php file?

  5. vogelap
    Member
    Posted 6 years ago #

    A perfectly reasonable question that I should have answered in my orignal post...

    I do have those entries (and the whole kitchen sink) in my theme's index.php file:

    <?php include(TEMPLATEPATH.'/loop.php'); ?>
    <?php wp_pagebar(); ?>
    <?php previous_posts_link(); ?> <?php next_posts_link(); ?>
    <?php posts_nav_link(); ?>
                            <?php tarski_posts_nav_link(); ?>
  6. vogelap
    Member
    Posted 6 years ago #

    Does my reply make sense? I am still stumped...

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Got anything unusual in the loop.php file? A query_posts() call, perhaps?

  8. vogelap
    Member
    Posted 6 years ago #

    Otto42:

    Thank you for your reply. I appreciate it.

    Line 1 of loop.php (completely bone-stock Tarski theme 2.0.5) contains:

    <?php if(!is_home() && !get_tarski_option('use_pages')) { $posts = query_posts($query_string . '&nopaging=1'); } ?>

    Is that part of the issue? (I am no coder, so am not sure how to proceed.)

  9. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Well, that seems like it's obviously your problem. Why are you setting nopaging to 1? As its name implies, that turns off the paging.

    I don't know what "Tarski" is doing, but that suggests to me that it's got some kind of setting somewhere to turn that on or off, since it's getting a "use_pages" option...

    My advice: Use a normal theme.

  10. ionfish
    Member
    Posted 6 years ago #

    From the discussion on the Tarski forum, my question:

    I take it the older/newer posts navigation works ok on other themes?

    And the answer...

    Hrm. Just tested it with WordPress Default Theme 1.6 and had the same problem -- no display at the bottom of the front page, but if I searched for a term (say, "Recipe"), the page navigation appears on the results page.

    So the problem isn't Tarski. It's my site...

  11. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    No, it's not WordPress. I just tested on my own site (running 2.3.3), and the pagination works correctly and just as expected with both my theme and the default theme.

    I use this code:

    <p style="text-align:center"><?php next_posts_link('&laquo; Previous Entries') ?> <?php previous_posts_link('Next Entries &raquo;') ?>

    And as you can see on the bottom of my main page, the previous and next entries links show up just fine.

    That nopaging variable is far more likely to be the culprit. I mean, that is specifically what it does, it disables the paging. With nopaging set to 1, you won't get those links. That's sorta the whole point of it.

  12. ionfish
    Member
    Posted 6 years ago #

    If he's trying it with the default theme then that code isn't going to have any effect, since it's in a totally different theme.

    Obviously I can't corroborate that he has the relevant option enabled, but since pagination works just fine for me on Tarski when it is, this seems to indicate that something else is going on.

  13. vogelap
    Member
    Posted 6 years ago #

    What suggestions about where to look can the experts on this site offer? I'm happy to poke around in code and provide samples, etc. I'd really like to get this issue diagnosed and fixed!

  14. vogelap
    Member
    Posted 6 years ago #

    Anyone? Anyone?!

  15. vogelap
    Member
    Posted 6 years ago #

    *bump*

  16. vogelap
    Member
    Posted 6 years ago #

    <sigh>

    Why isn't anyone helping me?

  17. ericdunlap
    Member
    Posted 6 years ago #

    I have a similar problem.

    On any index or category there is no link to the next page of Posts. This also happens in the admin where on any list of items I cannot link to the next page of sorted items (i.e. manage/posts or manage/categories).

    It is not the theme, because it is also broken in the admin.

    The plugin page-navi which should show "page 1 of 8" show "page 1 of 0".

    If this is not Word Press is my database broken?

    What creates pagination for both the website and the admin??

    http://www.forwardmotiontheater.org

  18. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Why isn't anyone helping me?

    Because nobody knows the answer to your question. I can't reproduce your problem. It works perfectly well with the default theme (despite what some random guy on some other forum says), so I still think that it's the theme's fault.

    Have you actually tried the default theme?

    If it doesn't work on the default theme for you, then I have no idea. We need more information. We don't have that information. We don't really even know what questions to ask you. The problem has never occurred before. So the most likely response will be no response, because we have absolutely nothing to base any sort of a response on.

    What creates pagination for both the website and the admin??

    The same code that produces the Loop. Every page gets one. It's all that code in query.php.

    Try rebuilding your permalinks. Shouldn't help, but might work.

  19. ericdunlap
    Member
    Posted 6 years ago #

    are you using adhesive? that could be a problem. it was for me.

    http://wordpress.org/support/topic/159748?replies=5

  20. vogelap
    Member
    Posted 6 years ago #

    @Otto42: Thanks for the replies, and for the information that silence in a thread doesn't necessarily mean that it is being ignored. (Just for the record, if a thread WAS being ignored, how would one know?)

    @ericdunlap: THANK YOU! Removing Adhesive FIXED the issue for me.

    Now, one more question... Is there a version of Adhesive that doesn't cause this problem, or can anyone recommend a replacement for Adhesive?

  21. vogelap
    Member
    Posted 6 years ago #

    Answering my own question... Lester Chan has released WP-Sticky, which is based on Adhesive and works with the current WordPress.

Topic Closed

This topic has been closed to new replies.

About this Topic