[wp-hackers] Exclude page by name in wp_list_pages
just.be.happy at gmail.com
Fri Jul 21 15:46:09 GMT 2006
On Jul 21, 2006, at 11:26 AM, Computer Guru wrote:
>> in the theme's functions.php, renaming them, and changing the line
>> handles excluding pages to sort by 'post_name' instead of 'ID'.
>> 'post_name' , unlike 'post_title' is unique as far as I know.
> But you never know: what if a plugin that use has come to the same
> conclusion, that it is unique for it too?
> The best way to do it is stick it in a class or else pre-pend a
> random string before it.
I renamed the functions. What I was saying was that the 'post_name'
column in the database is unique, unlike the 'post_title' column
More information about the wp-hackers