Support » Installing WordPress » wp_list_pages() and $wpdb

  • If you do a print_r on $wpdb after a wp_list_pages(‘child_of=33’) for example.. you’ll you got a lot more than you bargained for: the content and all 🙂 Seems to use get_pages function which has a “SELECT *” in it.. Just pointing this out as it could cause performance trouble if you’re using WP as a CMS. Especially if you’d happen to have long pages.

  • The topic ‘wp_list_pages() and $wpdb’ is closed to new replies.