-
-
Save billerickson/684ed9d0ef419f2aad6630a44d8eec6a to your computer and use it in GitHub Desktop.
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 on portfolio | |
* @see https://www.billerickson.net/genesis-archive-settings-for-custom-post-types/ | |
* | |
*/ | |
function be_portfolio_archive_settings( $args ) { | |
$args['supports'][] = 'genesis-cpt-archives-settings'; | |
return $args; | |
} | |
add_filter( 'portfolioposttype_args', 'be_portfolio_archive_settings' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment