Skip to content

Instantly share code, notes, and snippets.

@danielmcclure
Created November 6, 2018 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielmcclure/4b74edb58fba20f9a0117497ee9308c0 to your computer and use it in GitHub Desktop.
Save danielmcclure/4b74edb58fba20f9a0117497ee9308c0 to your computer and use it in GitHub Desktop.
Enable Archive Settings for multiple Custom Post Types via Genesis
<?php
// Enable Archive Settings for multiple Custom Post Types via Genesis
$types = array('custom-post-type-1', 'custom-post-type-2');
foreach ( $types as $type ) {
add_post_type_support( $type, 'genesis-cpt-archives-settings' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment