• Resolved remove

    (@remove)


    Hi friendly WordPress people.

    I have a very strange problem on a WordPress site I administer. It used to work fine, then the host had to restore the server from a backup and now it’s messed up.

    On a custom category archives page, I use query_posts to display a list of old posts in a specific category (the News category). It used to work fine, displaying more than 100 posts, but now all of a sudden the page displays the header and the sidebar but no actual content (and it cuts off before the footer is displayed).

    When I changed the number of posts to show to 10, it works fine. 11 old posts works fine too. But when I switch it to 12 or 20 or 50 or 100 or anything larger I get the same page with no content, just the header and the sidebar. Weird, huh?

    At first I thought it could be an issue with the server’s memory or something but after further thinking I thought that couldn’t be it because there is a similar query on another page which returns a big long list of posts in a different category just fine.

    I tried creating a brand new category and putting posts under it and it works until I add the 12th or so post, then it stops displaying posts. When I turn back the number of posts queried to, say, 11, it seems to work again.

    I’m a bit stumped, I’ve never seen this sort of thing before. I even tried switching the site back to the default WordPress theme (“2011”) and using 2011’s default archives page. It worked fine with the default number of posts per page to display being set at 10. But when I set the number of posts to display on category archives pages to 12 using the Reading setting in the admin backend, it gave me an entirely blank page for this News category (again, other categories work fine with more than 10 posts). Very strange.

    Any thoughts?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter remove

    (@remove)

    Thanks for your reply, esmi.

    As an experiment, I exported all the data out of the site as an XML file. I then imported the data back into a clean WordPress installation on my own computer (using MAMP).

    And the exact same thing happened! Other categories were able to show more than 11 posts, but when I tried to get the News category to display more than 11, it didn’t work. It did work however displaying 11 or less.

    Perhaps there’s an issue with the 12th News post?

    Thread Starter remove

    (@remove)

    Bingo! Yes, it turned out that the 12th News post was imported via feedwordpress (a syndication plugin) from one of our other websites. This caused no problem in and of itself but it turns out that that particular post it imported contained an embed code for this plugin, which was installed on the site that the post was originally composed on but not the site that it was imported into (the site I was having problems with).

    Once I deleted the post with the embed code for the flash MP3 player plugin it worked fine.

    Thanks for the help, Esmi!

    Glad I could help 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Category archive page won't show 12 or more posts?’ is closed to new replies.