The following is a code snippet originally posted by Daniel McClure on GitHub as a Gist.
functions.php
“`
Original Gist
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' ); | |
} |
Leave a Reply