Make connected posts pagination work on single templates
//Make registries pagination work on speciality singles
function vee_disable_redirect_canonical($redirect_url) {
if (is_singular('speciality')) $redirect_url = false;
return $redirect_url;
}
add_filter('redirect_canonical', 'vee_disable_redirect_canonical');