LogoLogo
Visit DLXPluginsView All Plugins
Archive Pages Pro
Archive Pages Pro
  • Welcome to Archive Pages Pro
  • Getting Started
    • Installing the Plugin
    • Finding the Plugin's Settings
  • Developers
    • Changing Post Type Retrieval Arguments
    • Excluding Certain Post Types From Mapping
  • Quick Links
    • DLX Plugins Home
    • Archive Pages Pro Home
    • Support
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Developers

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
PreviousChanging Post Type Retrieval Arguments

Last updated 8 months ago

Was this helpful?