Would you guys consider adding an echo flag to wp_pagenavi() so that we could opt to return the output in a shortcode handler.
Something like:
$args = wp_parse_args( $args, array( ... 'echo' => true));
... and:
if ($echo) {
echo apply_filters( 'wp_pagenavi', $out );
}
else
{
return apply_filters( 'wp_pagenavi', $out );
}