CPT Settings Page using ACF

In addition to top level option pages, you can create an options page that’s a subpage to an existing page. In this case, we’re creating a “Portfolio Settings” settings page that appears under the “Projects” CPT area in the backend.

* ACF Options Page
function ea_acf_portfolio_page() {
if ( function_exists( 'acf_add_options_sub_page' ) ){
acf_add_options_sub_page( array(
'title' => 'Portfolio Settings',
'parent' => 'edit.php?post_type=project',
'capability' => 'manage_options'
) );
add_action( 'init', 'ea_acf_portfolio_page' );
view raw functions.php hosted with ❤ by GitHub

Advanced Custom Fields

Bill Erickson

Bill Erickson is a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk