Created
November 6, 2018 01:48
-
-
Save danielmcclure/4b74edb58fba20f9a0117497ee9308c0 to your computer and use it in GitHub Desktop.
Enable Archive Settings for multiple Custom Post Types via Genesis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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