WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Infinite Scroll: Only 7 posts per category? (7 posts)

  1. tunaman
    Member
    Posted 1 year ago #

    So, like most WP users, my blog posts are divided up into several categories. I've enabled infinite scroll, and while I like it, there's an annoying "bug" I don't like:

    If you click on a category (say, "Music"), you only get 7 posts from that category before infinite scroll adds my main feed to the scroll. In my case, it adds the 9th post back from what I've currently published. So, when scrolling, users see:

    MUSIC
    MUSIC
    MUSIC
    MUSIC
    MUSIC
    MUSIC
    MUSIC
    9th POST ON MY HOME PAGE
    10th POST ON MY HOME PAGE
    11th POST ON MY HOME PAGE

    Is there any way to have infinite scroll "stick" to categories, so users will see only posts in those categories?

    I love infinite scroll as a concept, but it's kind of "hiding" older posts from users. And I've already moved all the footer widgets to the side to get scroll to work, so I don't want to go back to the "old way" if I can help it.

    (Also, apologies if this has been asked already. I searched for this a couple of weeks ago and intended to ask then, but got busy with clients and was only able to ask today.)

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Could you post a link to one of the Archive category pages on your site, so I can have a look?

  3. tunaman
    Member
    Posted 1 year ago #

    Sure. Just go to http://jimcofer.com/personal/ and click on any of the categories on the right-side. After 7 articles from that category, you'll probably see a post entitled "More Music (2012)" and other posts not in that category. You can repeat this by clicking any other category and scrolling down 7 posts.

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Thanks.

    We have fixed this issue, and the fix will be included in the next Jetpack release.

    You can find the changeset here:
    http://plugins.trac.wordpress.org/changeset/653296

    In the meantime, you can solve the issue by using Pretty Permalinks instead of the default numerical Permalinks.
    You can read more about it here:
    http://codex.wordpress.org/Using_Permalinks

  5. tunaman
    Member
    Posted 1 year ago #

    Thanks for the quick response!

    I've been wanting to change the permalink structure for some time, but have been hesitant to do so since this will (as far as I know) kill any internal links on my site.

    Is there any plug-in you might recommend that redirects links from the old links to the new ones? So I don't have to edit 2,000+ posts?

    Thanks!

  6. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    WordPress itself should handle the redirection, so you don't need any plugins. Once you have made the change, the links using the old numerical permalinks should be automatically redirected to the new pretty permalinks.

    If you experience any issues, you can refer to the instructions here to troubleshoot the issue:
    http://codex.wordpress.org/Using_Permalinks#Using_.22Pretty.22_permalinks

  7. tunaman
    Member
    Posted 1 year ago #

    Cool! Infinite scroll now works as expected, internal links still work, links from Google still work, and now I have spiffy URLs! Awesome!

    Thanks for the help and the quick response! You guys rock!

    Jim

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.