[wp-hackers] Exclude page by name in wp_list_pages

Robert Deaton false.hopes at gmail.com
Fri Jul 21 07:51:02 GMT 2006


On 7/21/06, Computer Guru <computerguru at neosmart.net> wrote:
> $wpdb->query("SELECT post_id FROM $wpdb->posts WHERE post_status = 'static' AND post_title = 'Mary Had a Little Lamb'");

Won't work. Try using $wpdb->get_var, $wpdb->get_results, or one of
the other $wpdb->get_* functions. Query just returns the number of
rows selected/modified by the query.


-- 
--Robert Deaton


More information about the wp-hackers mailing list