Joshua David Nelson

Bullshit Free WordPress Development

  • Services
  • Code
  • About
  • Contact

Remove Genesis Taxonomy Meta Fields

This snippet removes the genesis taxonomy meta fields, just add to your functions.php file or a custom plugin file.

<?php
/**
* Remove the term meta added by the Genesis Framework.
*
* @author Joshua David Nelson, [email protected]
*/
add_action( 'admin_init', 'jdn_remove_genesis_term_meta', 11 ); // hook in after genesis adds the tax meta
function jdn_remove_genesis_term_meta() {
$taxonomy = 'category'; // change this to your custom taxonomy
remove_action( "{$taxonomy}_edit_form", 'genesis_taxonomy_archive_options', 10 );
remove_action( "{$taxonomy}_edit_form", 'genesis_taxonomy_seo_options', 10 );
remove_action( "{$taxonomy}_edit_form", 'genesis_taxonomy_layout_options', 10 );
// OR, for multiple taxonomies
$taxonomies = array( 'category', 'post_tag' );
foreach( $taxonomies as $taxonomy ) {
remove_action( "{$taxonomy}_edit_form", 'genesis_taxonomy_archive_options', 10 );
remove_action( "{$taxonomy}_edit_form", 'genesis_taxonomy_seo_options', 10 );
remove_action( "{$taxonomy}_edit_form", 'genesis_taxonomy_layout_options', 10 );
}
}
view raw remove-genesis-tax-meta.php hosted with ❤ by GitHub

Source: https://gist.github.com/joshuadavidnelson/238b3e2de1f3f8604fb4

Tags: custom field, Genesis, Taxonomy

Previous Code:
Override Genesis Theme Settings
Back to the Code Snippets
Next Code:
Force a Post to Draft on Save
  • 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

Like This Site? Buy the WordPress theme and others by StudioPress.

StudioPress Premium WordPress Themes

Recent Posts

  • Using Font Awesome Icons for WooCommerce Grid / List Toggle
  • Disable Blog: WordPress Gone Blog-less
  • Category (Taxonomy) Dropdown Filtered By Post Type
  • Twitter
  • RSS Feed URL
  • Code Snippets
  • My Plugins
  • Make a Payment
  • Donate

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