WordPress Consultant

WordPress Design, Developing & Consulting

  • logo
  • Home
  • Services
    • Domain Names
    • Hosting
    • Maintenance
    • Support
    • Search Engine Optimization
    • Website Speed
    • WordPress Training
  • Portfolio
  • Web News
  • Bells & Whistles
  • About
    • Testmonials
  • Contact

Genesis Layout Options for Custom Post Types

February 6, 2012 by Brian 6 Comments

This will add the Genesis layout options to custom post types.

Only tricky part is change “your_custom_post_type” in the code below to match the name of your custom post type.

[cc]/**
* add Genesis layout options to custom posts types
*
* @author Brian Lis
* @link http://dev.studiopress.com/genesis-layout-options-for-custom-post-types.htm
*/

add_post_type_support( ‘your_custom_post_type’, ‘genesis-layouts’ );
[/cc]

*** Tip, if your unsure what you called your custom post type you can find it by clicking it in the WP admin menu. You’ll go to a link similar to this, http://domain-name.com/wp-admin/edit.php?post_type=my-cpt. In this example “my-cpt” would be what I’d use for “your_custom_post_type”.

Filed Under: Web News Tagged With: Genesis, StudioPress

Sign up for my Newsletter

  • General WordPress Tips and How-To's
  • Branding & Marketing Suggestions
  • Insider information and offers
  • Internet Tricks of the Trade - Design, Social Media and More

Whatcha Waiting For?

Comments

  1. Bharat Chowdary says

    April 24, 2012 at 5:36 am

    Thanks brain for this simple and handy tip…

    Reply
  2. Jesse Brede says

    August 24, 2012 at 6:15 pm

    Where do I add this code? functions.php or in genesis? I’m a NOOB.

    Reply
    • Brian Lis says

      August 26, 2012 at 10:23 am

      In the functions.php file in your child theme (not in Genesis). You could use the editor found under appearance. Its always better to change the file on text or html editor and .ftp the file to your server in case you make a mistake, which allows you to undo mistakes.

      Reply
  3. Alex says

    September 12, 2012 at 6:24 pm

    Brian,
    Good tip! What would be the cleanest way to do this for multiple CPTs? Obviously, I wouldn’t want to write that block of code three times if I didn’t h ave to.

    Thanks.

    Reply
  4. Alex says

    September 12, 2012 at 6:29 pm

    Nevermind. I was over thinking this. I just added the lines and it worked fine. Blonde moment. +)

    Reply
  5. Duy nguyen says

    August 10, 2015 at 2:59 am

    Thank you very much Brian! It helps me save a lot of time.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Client Testimony

Skin of Gold

The design and service exceeded my expectations. Thanks again.

Ariana Daglian

More Testimonies

Logo Design

Logo created by Brian Lis Web Design, Inc.

© 2022 Brian Lis Web Design Inc · Terms of Service · Genesis Framework · WordPress · G+ · Credits