Community Forums › Forums › Archived Forums › General Discussion › Executive Pro – Attribute Template Drop Down Missing from Custom Post Type
- This topic has 1 reply, 1 voice, and was last updated 8 years, 6 months ago by ilkweb.
-
AuthorPosts
-
April 29, 2016 at 2:54 am #184666ilkwebParticipant
Hi StudioPress support,
I'm having a puzzling issue with Executive Pro, specifically that when I create custom post types, the page attribute template drop down refuses to show.
I've been using a plugin called Custom Post Type UI in combination with a plugin called Advanced Custom Fields.
I've checked out the support forums for those plugins and cannot find an answer as to why I am unable to select a template. It's important that I do because I want to display the custom fields on the front end, and wrap in HTML and then style with CSS.
Others have had similar issues and the developer of Custom Post Type UI has tried to help the others who raised the issue, even though some of those people were not using Genesis.
Here are some of those discussions:https://wordpress.org/support/topic/missing-template-attribute?replies=4
https://wordpress.org/support/topic/layouttemplate-option-missing?replies=9I am wondering if this problem is specific to my theme. I've spent about 16 hours Googling and reading various tutorials and trying to find videos on the subject. Here it is:
https://www.youtube.com/watch?v=_syq5Nl_5_c
Information about the two plugins I've used in combination with a Genesis theme seem hard to find.
I've even recorded an unlisted YouTube video at the end of this post in which I show my dashboard and explain what I believe the issue may be. You'll be able to pause it if that helps.
I emailed StudioPress support but the answer I got was basically "no, you can't do that." But I disagree. I've seen this done in videos on YouTube! With Genesis! Using the same plugins I have mentioned.
Here is the video I want to copy, but cannot: https://www.youtube.com/watch?v=LY04Fe3xSME
Just to rule out any conflicting code, here's a print out of my functions.php code:
<?php //* Start the engine require_once( get_template_directory() . '/lib/init.php' ); //* Setup Theme include_once( get_stylesheet_directory() . '/lib/theme-defaults.php' ); //* Set Localization (do not remove) load_child_theme_textdomain( 'executive', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'executive' ) ); //* Child theme (do not remove) define( 'CHILD_THEME_NAME', __( 'CoLaw Theme', 'colaw' ) ); define( 'CHILD_THEME_URL', 'http://www.domain.com' ); define( 'CHILD_THEME_VERSION', '1.0' ); //* Add HTML5 markup structure add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); //* Add viewport meta tag for mobile browsers add_theme_support( 'genesis-responsive-viewport' ); //* Enqueue Scripts add_action( 'wp_enqueue_scripts', 'executive_load_scripts' ); function executive_load_scripts() { wp_enqueue_script( 'executive-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' ); wp_enqueue_style( 'dashicons' ); wp_enqueue_style( 'google-font', '//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700', array(), CHILD_THEME_VERSION ); } // Enable shortcodes in widgets add_filter('widget_text', 'do_shortcode'); // Add seperator shortcode function SeperatorShortcode() { return '<div class="seperator-line"></div>'; } add_shortcode('seperator', 'SeperatorShortcode'); //* Add new image sizes add_image_size( 'featured', 300, 100, TRUE ); add_image_size( 'portfolio', 300, 200, TRUE ); add_image_size( 'slider', 1140, 445, TRUE ); //* Add support for custom background add_theme_support( 'custom-background' ); //* Add support for custom header add_theme_support( 'custom-header', array( 'width' => 260, 'height' => 100, 'header-selector' => '.site-title a', 'header-text' => false ) ); //* Add support for additional color style options add_theme_support( 'genesis-style-selector', array( 'executive-pro-brown' => __( 'Executive Pro Brown', 'executive' ), 'executive-pro-green' => __( 'Executive Pro Green', 'executive' ), 'executive-pro-orange' => __( 'Executive Pro Orange', 'executive' ), 'executive-pro-purple' => __( 'Executive Pro Purple', 'executive' ), 'executive-pro-red' => __( 'Executive Pro Red', 'executive' ), 'executive-pro-teal' => __( 'Executive Pro Teal', 'executive' ), ) ); //* Unregister layout settings genesis_unregister_layout( 'content-sidebar-sidebar' ); genesis_unregister_layout( 'sidebar-content-sidebar' ); genesis_unregister_layout( 'sidebar-sidebar-content' ); //* Unregister secondary sidebar unregister_sidebar( 'sidebar-alt' ); //* Load Admin Stylesheet add_action( 'admin_enqueue_scripts', 'executive_load_admin_styles' ); function executive_load_admin_styles() { wp_register_style( 'custom_wp_admin_css', get_stylesheet_directory_uri() . '/lib/admin-style.css', false, '1.0.0' ); wp_enqueue_style( 'custom_wp_admin_css' ); } //* Remove the site description remove_action( 'genesis_site_description', 'genesis_seo_site_description' ); //* Reposition the secondary navigation menu remove_action( 'genesis_after_header', 'genesis_do_subnav' ); add_action( 'genesis_footer', 'genesis_do_subnav', 7 ); //* Reduce the secondary navigation menu to one level depth add_filter( 'wp_nav_menu_args', 'executive_secondary_menu_args' ); function executive_secondary_menu_args( $args ){ if( 'secondary' != $args['theme_location'] ) return $args; $args['depth'] = 1; return $args; } //* Relocate the post info remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); add_action( 'genesis_entry_header', 'genesis_post_info', 5 ); //* Remove comment form allowed tags add_filter( 'comment_form_defaults', 'executive_remove_comment_form_allowed_tags' ); function executive_remove_comment_form_allowed_tags( $defaults ) { $defaults['comment_notes_after'] = ''; return $defaults; } //* Customize the author box title add_filter( 'genesis_author_box_title', 'custom_author_box_title' ); function custom_author_box_title() { return '<strong>Let CoLaw Help You...</strong>'; } //* Modify the size of the Gravatar in the author box add_filter( 'genesis_author_box_gravatar_size', 'author_box_gravatar_size' ); function author_box_gravatar_size( $size ) { return '90'; } /** * Add SVG capabilities */ function colaw_svg_mime_type( $mimes = array() ) { $mimes['svg'] = 'image/svg+xml'; $mimes['svgz'] = 'image/svg+xml'; return $mimes; } add_filter( 'upload_mimes', 'colaw_svg_mime_type' ); //* Add support for 3-column footer widgets add_theme_support( 'genesis-footer-widgets', 3 ); //* Add support for after entry widget add_theme_support( 'genesis-after-entry-widget-area' ); //* Relocate after entry widget remove_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' ); add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area', 5 ); //* Register widget areas genesis_register_sidebar( array( 'id' => 'home-slider', 'name' => __( 'Home - Slider', 'executive' ), 'description' => __( 'This is the slider section on the home page.', 'executive' ), ) ); genesis_register_sidebar( array( 'id' => 'home-below-slider', 'name' => __( 'Home - Below Slider', 'executive' ), 'description' => __( 'This is the slider below section on the home page.', 'executive' ), ) ); genesis_register_sidebar( array( 'id' => 'home-top', 'name' => __( 'Home - Top', 'executive' ), 'description' => __( 'This is the top section of the home page.', 'executive' ), ) ); genesis_register_sidebar( array( 'id' => 'home-cta', 'name' => __( 'Home - Call To Action', 'executive' ), 'description' => __( 'This is the call to action section on the home page.', 'executive' ), ) ); genesis_register_sidebar( array( 'id' => 'content-cta', 'name' => __( 'Home - Content Section', 'executive' ), 'description' => __( 'This is the full width content section on the home page.', 'executive' ), ) ); genesis_register_sidebar( array( 'id' => 'home-middle', 'name' => __( 'Home - Middle', 'executive' ), 'description' => __( 'This is the middle section of the home page.', 'executive' ), ) );
April 29, 2016 at 3:37 am #184667ilkwebParticipantFYI, I believe I'm on the way to solving this by myself, but if anyone can give any comments, please do and I'm sure it will reinforce my understanding.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.