• 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

Taxonomy Meta Box

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 › Taxonomy Meta Box

This topic is: not resolved

Tagged: taxonomy

  • This topic has 2 replies, 2 voices, and was last updated 12 years, 3 months ago by devongroup.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • November 1, 2013 at 8:43 am #70301
    devongroup
    Member

    Hello the below code registers a taxonomy and causes the meta box to show only when in that taxonomy in the wordpress admin.

    My question is how to register a new taxonomy but have it only display the meta box in the admin for the children of a certain parent page.

    The line that has 'landing pages' restricts the meta box for this taxonomy to the custom post type of Landing_Pages. The only other 2 options I know of are 'post' and 'page' but again I want to restrict the taxonomy meta box to just the children of a certain parent.

    Another question is there a way to set an array so I can target post, page and a CPT? Curios how flexible the wordpress taxonomies are.

    Let me know if I am not being clear.

    /* Landing Pages Categories Taxonomy */
    add_action( 'init', 'landing_pages_cats' );
    function landing_pages_cats() { // Landing Pages Categories
    register_taxonomy(
    'landingpagescats',
    'landing_pages',
    array('label' => __( 'Landing Pages Categories' ), 'sort' => true, 'args' => array( 'orderby' => 'term_order' ), 'rewrite' => array( 'slug' => 'category-news-room' ), 'hierarchical' => true )
    );
    }

    February 14, 2014 at 8:12 pm #90404
    Susan
    Moderator

    As it has been a while since you posted your question, I hope you were able to get your issue resolved.

    If not, report back here, and I will escalate for you. Thanks!

    February 20, 2014 at 10:07 am #91405
    devongroup
    Member

    Still searching for a solution!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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