[wp-testers] WP3.1 beta 2 - WordPress database error when viewing custom post type single post

Ade Walker photofantaisie at gmail.com
Wed Dec 22 18:08:10 UTC 2010


Update:

The culprit is previous_post_link() and next_post_link() when the
$in_same_cat arg is set to true. In the particluar case in which I am
getting this error, the 'category' taxonomy is not used for this custom post
type - hence the error.

In fact the underlying function used by previous_post_link() is
get_adjacent_post() (see wp-includes/link-template.php). Perhaps this
function should be able to take a taxonomy argument, with a default of
'category'?


More information about the wp-testers mailing list