yanknudtskov
4/11/2017 - 9:22 AM

Remove Post Nav for specific post types in Enfold

Remove Post Nav for specific post types in Enfold

<?php

/*
 * Remove Post Nav for specific post types
 */
add_filter( 'avia_post_nav_entries', 'yanco_remove_post_nav' );
function yanco_remove_post_nav( $entries ) {
	$post_type = get_post_type();

	switch( $post_type ) {
		case 'post':
			$entries = array();
			break;
		default:
			break;
	}

	return $entries;
}