• 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

I need some help with a custom post type that I created

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 › Design Tips and Tricks › I need some help with a custom post type that I created

This topic is: resolved

Tagged: custom post types, custom taxonomies

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 1 month ago by lazab.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 12, 2014 at 11:31 pm #104858
    lazab
    Member

    I created a custom post type called "movies."

    For the movies I created a few custom taxonomies:
    1- age suggestions
    2-topics
    3-setting
    4- plot

    Inside of my functions file I have added the following code to display the custom taxonomies on single post pages. The Taxonomies show up, however, they are causing the taxonomies to not show up on my regular post pages.

    Can you help me to solve my problem. I want the categories and the tags to show up on regaular posts, as well as the custom taxonomies to show up.

    Here is the code that I am using the display the taxonomies on my custom post types:

    add_filter( 'genesis_post_meta', 'post_meta_filter' );
    function post_meta_filter($post_meta) {
    if ( is_page() ) {
    $post_meta = ' [post_terms before="Age:" taxonomy="age"]<br/>
    [post_terms before="Topics:" taxonomy="topics"]<br/>
    [post_terms before="$taxon:" taxonomy="$taxon"]<br/>
    [post_terms before="TFiled Under:" taxonomy="$taxon"]
    ';
    return $post_meta;
    }
    }

    This is a site that I am working on....on my computer.. No url available, sorry.

    http://localhost
    May 13, 2014 at 12:34 am #104864
    Brad Dalton
    Participant

    Please embed the code using a Github Gist as it will break the site of anyone who pastes that code into their themes files.


    Tutorials for StudioPress Themes.

    May 13, 2014 at 7:11 am #104890
    lazab
    Member

    @braddalton

    add_filter( ‘genesis_post_meta’, ‘post_meta_filter’ );
    function post_meta_filter($post_meta) {
    if ( !is_page() ) {
    $post_meta = ‘	[post_terms before="Age:" taxonomy="age"]<br/>
    [post_terms before="Topics:" taxonomy="topics"]<br/>
    [post_terms before="$taxon:" taxonomy="$taxon"]<br/>
    [post_terms before="TFiled Under:" taxonomy="$taxon"]
    ‘;
    return $post_meta;
    }
    }
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ 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

© 2025 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