Add custom field to the archive page?

Using the Advanced Custom Fields plugin you can assign options pages to you custom posttype like this:

if( function_exists('acf_add_options_page') )
{
    acf_add_options_page(array(
        'page_title'    => 'YOUR_PAGE_TILE Options',
        'menu_title'    => 'YOUR_MENU_TITLE Options',
        'menu_slug'     => 'options_YOUR_SLUG',
        'capability'    => 'edit_posts',
        'parent_slug'   => 'edit.php?post_type=YOUR_CUSTOM_POSTTYPE_SLUG',
        'position'      => false,
        'icon_url'      => 'dashicons-images-alt2',
        'redirect'      => false,
    ));
}

That way you get an options page you can assign fields to later. Keep in mind that all the fields you asign to that option page are not bound to your custom posttype. They are like ‘normal” option fields but you have them in your custom posttype section in the WP Backend menu.
I think it’s necessary to use the pro version of the plugin – or have the addon installed to build option pages.

Leave a Comment