[wp-hackers] Exclude page by name in wp_list_pages

Paul Menard codehooligans at codehooligans.com
Fri Jul 21 13:33:29 GMT 2006


So what will be returned if you have two pages with the same title?



On Jul 20, 2006, at 4:50 AM, Computer Guru wrote:

>> 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/
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



More information about the wp-hackers mailing list