I'm pretty new to PHP, I'm working in WordPress but I don't think that this question is WordPress specific. Basically, I've run a MySQL query that returns some numbers. In WordPress, you can use a function called wp_list_pages() to say exactly which pages you want to include in something, like this:I'm pretty new to PHP, I'm working in WordPress