Joshua David Nelson

Bullshit Free WordPress Development

  • Services
  • Code
  • About
  • Contact

Remove Genesis Custom Post Type Archive Metaboxes

Remove metaboxes from the genesis custom post type archive settings page.

<?php
/**
* Remove metaboxes from Genesis Custom Post Type Archive Settings
*
* @author Joshua David Nelson, [email protected]
*/
add_action( 'genesis_cpt_archives_settings_metaboxes', 'jdn_remove_genesis_cpt_metabozes' );
function jdn_remove_genesis_cpt_metabozes( $_genesis_cpt_settings_pagehook ) {
// remove main settings
remove_meta_box( 'genesis-cpt-archives-settings', $_genesis_cpt_settings_pagehook, 'main' );
// remove seo settings
remove_meta_box( 'genesis-cpt-archives-seo-settings', $_genesis_cpt_settings_pagehook, 'main' );
// remove layout settings
remove_meta_box( 'genesis-cpt-archives-layout-settings', $_genesis_cpt_settings_pagehook, 'main' );
}
view raw remove-genesis-cpt-metaboxes.php hosted with ❤ by GitHub

Source: https://gist.github.com/joshuadavidnelson/9a566115d0509be3d878

Tags: custom post type, Genesis

Previous Code:
Taxonomy List and Dropdown Link Shortcode
Back to the Code Snippets
Next Code:
Migrating WordPress Site Database SQL Queries
  • Twitter
  • RSS Feed URL

About Me

I'm a WordPress Engineer. I build sleek, custom websites with WordPress and Genesis.

See my services and my recent work.

Contact me to get your project started.

Gravity Forms Plugin for WordPress Fastest WordPress Hosting

Recent Posts

  • Using Font Awesome Icons for WooCommerce Grid / List Toggle
  • Disable Blog: WordPress Gone Blog-less
  • Category (Taxonomy) Dropdown Filtered By Post Type
  • Weather in WordPress with Dark Sky
  • Fixing Your Deprecated Widget Constructors in WordPress 4.3
  • Twitter
  • RSS Feed URL
  • Code Snippets
  • My Plugins
  • Make a Payment

© Joshua David Nelson | Hand-Forged | WordPress + Genesis | Terms of Service | Legal | Contact