Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created April 22, 2019 11:09
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/684ed9d0ef419f2aad6630a44d8eec6a to your computer and use it in GitHub Desktop.
Save billerickson/684ed9d0ef419f2aad6630a44d8eec6a to your computer and use it in GitHub Desktop.
<?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