[wp-hackers] Exclude page by name in wp_list_pages

Computer Guru computerguru at neosmart.net
Thu Jul 20 09:50:49 GMT 2006


> 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.

I stand corrected. I had just searched the codex for DB design and copy and pasted the variables into a standard MySQL query... I had no idea what the query() function even did... ;-)

However, the query itself is OK.

Computer Guru
NeoSmart Technologies
http://neosmart.net/blog/



More information about the wp-hackers mailing list