-
-
Save billerickson/54c015be08264240ee03 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 | |
// Don't include the <?php at the top | |
/** | |
* Remove Archive from 'portfolio' post type | |
* | |
*/ | |
function be_portfolio_post_type_args( $args ) { | |
$args['has_archive'] = false; | |
return $args; | |
} | |
add_filter( 'portfolioposttype_args', 'be_portfolio_post_type_args' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment