• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Add Meta Box to Genesis CPT Archive Settings

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Add Meta Box to Genesis CPT Archive Settings

This topic is: not resolved

Tagged: admin, cpt archive, Meta box

  • This topic has 1 reply, 1 voice, and was last updated 12 years, 2 months ago by lagomdesign.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 28, 2014 at 4:18 pm #87568
    lagomdesign
    Member

    I'd like to add a meta box to the built-in Genesis custom post type archive settings. I see in the Genesis code there's a hook that (I think) will allow me to do so,
    142 do_action( 'genesis_cpt_archives_settings_metaboxes', $this->pagehook );

    I went ahead and added the following to the theme, just to see if I could get the meta box to show up. But no luck. Any ideas on how to get this to work? Or shoot me down now before I spend more time on it.

    add_action('genesis_cpt_archives_settings_metaboxes', 'foundation_cpt_header_image');
    
    function foundation_cpt_header_image()
    {
    	add_meta_box( 'genesis-cpt-archives-image', __( 'Header Image', 'genesis' ), 'foundation_cpt_header_meta' );
    }
    
    function foundation_cpt_header_meta() 
    {
    	?>
    	<p>You are here.</p>
    	<?php
    }
    January 30, 2014 at 10:55 am #87836
    lagomdesign
    Member

    Well, figured it out. Had to add the pagehook that's passed via the do_action. So …

    function foundation_cpt_header_image( $pagehook )
    {
    	add_meta_box( 'genesis-cpt-archives-image', __( 'Header Image', 'genesis' ), 'foundation_cpt_header_meta', $pagehook, 'main' );
    }

    gets the metabox to show up.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble