WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Static Pages gone from wp-admin menu after upgrade to 2.2.2 (7 posts)

  1. Faisal Humayun
    Member
    Posted 6 years ago #

    Site: http://seekeraftertruth.com
    Version: 2.2.2

    Static pages I created while using WP 1.9 no longer appear under the manage -> pages (menu) in the admin section.
    The pages can be accessed via a permalink but seems to me that WP-Admin somehow "lost track" of them

    Any fixes?
    Thanks,
    Faisal

  2. MichaelH
    Member
    Posted 6 years ago #

    There was no version WP 1.9.

    Pages are kept in the wp_posts table and the post_status field should be 'publish' and the post_type should be 'page'.

  3. Faisal Humayun
    Member
    Posted 6 years ago #

    My apologies Michael - the irregularities of speed typing have bested me once more.

    1. I am unsure how to verify the wp-admin interface with these recommendations as the pages section is completely blank and there is no place to apply these corrections. (these options appear only while trying to create a new page -- whereas I am trying to recover ones that wp-admin appears to have lost).

    2. The invocation from the theme's sidebar as follows:
    <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>
    Should this be different? (as it no longer works).

  4. MichaelH
    Member
    Posted 6 years ago #

    You'd need to use something like phpMyAdmin to check the database.

  5. Faisal Humayun
    Member
    Posted 6 years ago #

    Michael-

    Thanks for the guidance. I took it from there and solved the issue.

    For the benefit of any other reader:

    I installed phpmyadmin as suggested

    Ran the following test SQL query:
    ---------------------------------
    SELECT * FROM wp_posts WHERE post_status = 'publish'
    and noted a good set of results.

    Then, I applied the rules suggested above.
    ------------------------------------------
    SELECT * FROM wp_posts WHERE post_status = 'publish' AND post_type = 'page'

    I got no results.

    Next I queried the post_title with the known title of one of the pages I had made.
    -------------------------------------------------------
    SELECT * FROM wp_posts WHERE post_title = 'contact'

    Here I noted the post_type was set to 'post' and not 'page'.

    Using the edit feature in the row result of phpmyadmin, I changed this to 'page', and voila, we're back in business.

    Thanks.

  6. kalico
    Member
    Posted 5 years ago #

    Thanks so much! This resolved my issue easily since I only had a few Pages.

  7. Chris Billett
    Member
    Posted 5 years ago #

    I have been having this problem, and can see in phpMyAdmin that the post_type is correctly set to 'page' - could there be any other reasons for this issue?

Topic Closed

This topic has been closed to new replies.

About this Topic