halsnalle
Member
Posted 5 years ago #
So I just upgraded to 2.1, and everything went well except that my article archive broke.
I use pages to maintain a number of articles I've written for various newspapers. On a parent page, I list all article subpages, and sort them by a custom field value (date originally published), as described in this thread:
http://wordpress.org/support/topic/73513/page/2?replies=10#post-390129
Since upgrading, though, the list has disappeared. Could it be that something has changed deep down in the WordPress database?
halsnalle
Member
Posted 5 years ago #
And oh, the subpages containing the articles are still there. They just don't appear in the list on the parent page (which serves as the article archive main page).
halsnalle
Member
Posted 5 years ago #
Ah, thanks! That was simple, but I'll post it here if someone else has the same problem. All I had to do was change this in the parent Page template, from:
WHERE post_status = 'static'
to
WHERE post_type = 'page'
You may want to read the Update, too ;)
(since 2.1. Pages also can have published or draft status!)