Support » Installing WordPress » “Pages” added to default category upon upgrade

  • I upgraded 2 of my blogs to WP 2.1 and notice that the pages have been added to the default category. So when I view the sitemap page the pages are listed under the “site-news” category (which is category 1 and was the original default cat).

    Any idea how to fix this so they are not under any category and are just pages again? Or am I missing something obvious?

Viewing 9 replies - 1 through 9 (of 9 total)
  • I am afraid that must be a bug. Or a plugin incompatibility.
    Pages, actually, are and always were assigned to the default category of the blog – but strictly for internal technical reasons (so I was told by the gurus).

    So, I assume those Pages were always in that category, it just wasn’t visible…

    Thanks moshu, I was thinking that might be a possibility, is there anything I can do to make them non visible again? It does not seem to be a major issue, though just a little weird. 😉

    I’ve looked around in the database (not that I am a wizard or something…:)
    In the pre-2.1 versions the Pages were “flagged” in the wp_posts table (or whatever your prefix is) in the “post_status” column as – static.
    Now, they are marked as “page” in another column called “post_type” – which was there but empty in previous versions.

    Now my educated(?) guess is: if a plugin or script is looking to do something with Pages (exclude in a list or include or whatever) and the script is looking for “static” – it will not work. It will has to be re-written to look for the “page” in the “post_type” column of the DB.

    I know, this is not the best technical description but might give you, guys, a direction.
    (just a reminder: I am not a coder)

    No, you didn’t, mariogracia!
    This is a different issue, not related to post categories.

    Solutionated? 🙂

    [for a non-native speaker is excusable… and maybe we shouldn’t “grin” at those who struggle with the language]

    My issue with this was with the DDSitemapGen plug in by

    I fixed this by adding “post_type” to the list on line: 881

    SELECT post_title, ID, post_status, post_type, cat_ID, post_date, cat_name

    and then on line: 887 I copied the line that was there created a new line below it pasted it and changed it to:

    AND post_type != 'page'

    Seems to have fixed the issue with this plug in I was having, so if anyone else is having the same issue and knows less about PHP than even I do here is a fix until it is updated by Dagon.

    Thanks again moshu, it was you that led me to this solution. 🙂

    Edit: I should add that this may not be an ideal solution, it just fixed the issue I was having. There may indeed be a better way.


    Sorry, i didn’t understood the issue well

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘“Pages” added to default category upon upgrade’ is closed to new replies.