still I do not understand how to use ! I could be use wp_pagenavi in my example ?
$query_prof = array('post_type' => 'Professor', 'posts_per_page' => 4, 'paged' => get_query_var('paged'));
wp_pagenavi(array( 'Professor' => $query_prof ));
would it be this? if so, it is not working!