WordPress.org

Ready to get started?Download WordPress

Forums

Pages+ plugin hack for WP 2.1 (3 posts)

  1. virgvv
    Member
    Posted 7 years ago #

    I use Adam Hopkinson's excellent Pages+ plugin to make managing pages and subpages easier. It does not work with WP 2.1, but a minor hack fixes that. Around line 145, change the query to read:
    <br><br>
    $sql = "SELECT ID, menu_order, post_title, post_name, guid FROM $wpdb->posts WHERE post_parent = $parent_id AND post_status = 'publish' AND post_type = 'page' ORDER BY $orderby $sortorder";

  2. searchen
    Member
    Posted 7 years ago #

    Thank you so much!

    It worked like a charm!

  3. zota
    Member
    Posted 7 years ago #

    Hooray!

Topic Closed

This topic has been closed to new replies.

About this Topic