Excluding Certain Post Types From Mapping

You can exclude certain post types from mapping using filter: archive_pages_pro_excluded_post_types

$excluded   = array( 'attachment', 'revision', 'nav_menu_item', 'gblocks_templates', 'post', 'page', 'gblocks_global_style' );
/**
 * Filter the post types to exclude.
 *
 * @param array $excluded Post types to exclude.
 */
$excluded = apply_filters( 'archive_pages_pro_excluded_post_types', $excluded );php

Last updated