Forums

[resolved] Very Strange Author Problem - Not all posts showing up (13 posts)

  1. nickaster
    Member
    Posted 2 years ago #

    This might be a problem in the database or something. Any help appreciated!

    I have an author, call him "George"

    George has 20 post. If I look at "users" in the back end I can see the number "20" next to his name.

    If, however, I click the number "20" then I only see 4 posts by george. In fact, if I go to his author page, there are indeed only 4 posts showing.

    If, however, I look at the overall archive of the site, I can clearly see 20 posts by george, which clearly say "by George" and show up as normal posts with him attributed.

    What's going on?

  2. nickaster
    Member
    Posted 2 years ago #

    Any chance some database sleuthing might shed light on this?

  3. nickaster
    Member
    Posted 2 years ago #

    err... any ideas for how to diagnose this? my guess is this problem happened due to migration - this blog was recently migrated from Movable type. Would that make sense?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Yes - it would. Have you checked the wp-posts table for posts by this user to see if you can find any difference between the posts being displayed and those that aren't?

  5. nickaster
    Member
    Posted 2 years ago #

    Very interesting, thank you! Okay so I looked at that table using phpMyAdmin and I do indeed see 20 posts by this particular author #123. It is the correct number, and is displayed correctly if I look at the list of users in the WP admin, but as described above, only 4 posts show when I move beyond that.

    What else should I be looking for?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Is the post status the same on all 20 posts?

  7. nickaster
    Member
    Posted 2 years ago #

    Yeah... all of them are set to "publish"

    Here's the way it actually manifests on the site:

    This is a category page with most of the post by the author in question "Presidio Buzz"

    http://www.triplepundit.com/category/presidio-buzz/

    (you can see many more than 4 posts correctly listed by that author)

    But when we look at that author's author page:

    http://www.triplepundit.com/author/pbuzz/

    We only see 5 posts - I may have miscounted before when I said there were only 4.

    The same thing happens in the back end.

  8. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    When did you migrate from Movable Type? Some of the "missing posts" are fairly recent.

  9. nickaster
    Member
    Posted 2 years ago #

    About 3 weeks ago... All the posts were part of the migration, so it's odd that 5 would make it through okay.

  10. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Have you tried editing any of the missing posts and simply updating them? I'm wondering - if you push them through the WP system, will it automatically correct the problem?

  11. nickaster
    Member
    Posted 2 years ago #

    Yes - updating them didn't do anything. But...

    Aha!

    I have a fascinating clue - there happens to be a category called "Presidio Buzz" which is the same name as the author "PBuzz - Display name is Presidio Buzz"

    Those 5 stories that appear on the author page correctly were in OTHER categories. If I move one to the "Presidio Buzz" category then it disappears - now there are only 4.

    Is it possible that wordpress does not like categories with the same name as an existing author?

  12. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Oh - that could be it!

    I've seen the odd strange behaviour on earlier WP version when there were matching tags/categories. And had a recent case where a matching page title/posts page url caused a problem but I've never tried a category/author match.

    If it's confirmed as an issue, it could be with raising a ticket in Trac for this.

  13. nickaster
    Member
    Posted 2 years ago #

    oh god! I figured it out. I'm an idiot. I had a category exclusion plugin turned on. I didn't realize it would exclude categories from author pages, just though it would affect the front page. Live and learn. Thanks for the help!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags