I found this works in my WP 3.0 theme (not twenty ten, but similar, so YMMV):
In functions.php, find the section referring to the page_navi: in my theme, function page_navi
.
Locate at the bottom of that paragraph of code
$prev_link = get_previous_posts_link(__('Newer Entries »', THEME_NS));
$next_link = get_next_posts_link(__('« Older Entries', THEME_NS));
Comment that out and add instead
if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
So, altogether in my theme it looks like:
function art_page_navi($title = '', $comment = false) {
$prev_link = null;
$next_link = null;
if($comment){
$prev_link = get_previous_comments_link(__('Newer Entries »', THEME_NS));
$next_link = get_next_comments_link(__('« Older Entries', THEME_NS));
} elseif (is_single() || is_page()) {
$next_link = get_previous_post_link('« %link');
$prev_link = get_next_post_link('%link »');
} else {
if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
/*$prev_link = get_previous_posts_link(__('Newer Entries »', THEME_NS));
$next_link = get_next_posts_link(__('« Older Entries', THEME_NS));*/
}
HTH. I’m not much of a coder, but it works for me (needs styling, though).