Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created December 15, 2014 17: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 billerickson/54c015be08264240ee03 to your computer and use it in GitHub Desktop.
Save billerickson/54c015be08264240ee03 to your computer and use it in GitHub Desktop.
<?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