Community Forums › Forums › General Discussion › Simple Sidebars and Custom Post Types Archives Plugins Conflict?
This topic contains 5 replies, has 4 voices, and was last updated by Jami Howard 3 weeks ago.
-
AuthorPosts
-
January 3, 2013 at 10:47 pm #9389
If I use both “Genesis Custom Post Types Archives” and “Genesis Simple Sidebars” together, I’m getting a conflict.
I’m using Simple Sidebars on a Custom Post Type created in functions.php
/** Register hosts custom post type */
add_action( 'init', function()
{
register_post_type( 'hosts',
array(
'labels' => array(
'name' => __( 'Hosts' ),
'singular_name' => __( 'Host' ),
'add_new' => _x( 'Add New Host', 'Host' ),
'add_new_item' => __( 'Add New Host' ),
'edit_item' => __( 'Edit Host' )
),
'public' => true,
'has_archive' => true,
'hierarchical' => false,
'capability_type' => 'post',
'supports' => array('title','editor','thumbnail','excerpt','author','comments','page-attributes','genesis-seo','revisions')
)
);
});I also have this in functions.php to add support with the CPT and Simple Sidebars
/** Add support for custom post types with Genesis Simple Sidebars */
add_post_type_support( 'hosts', 'genesis-simple-sidebars' );
add_post_type_support( 'hosts', 'genesis-simple-menus' );
add_post_type_support( 'hosts', 'genesis-layouts' );If I disable “Genesis Custom Post Types Archives” then the sidebar appears and works under a post under the ‘Hosts’ CPT. If I enable this plugin, I get the default sidebar that appears sitewide.
Have I made a mistake somewhere or is this a bug? I’m running CPTs Archives disabled at the moment which shows it working when enabled under the edit post: http://www.webhostingchoose.com/hosts/inmotion-hosting-review/
Thank you.
Scott Buehler
WebHostingChoose.comJanuary 14, 2013 at 11:50 pm #12009January 15, 2013 at 10:40 am #12069January 18, 2013 at 3:06 am #12816This is causing problems for me as well, having to use only the regular sidebars and Widget Logic, which is a pain. I usually use a combination of both.
I second the thanks for getting on this, appreciate it!
February 20, 2013 at 10:49 pm #21872May 1, 2013 at 2:09 pm #38819I emailed Travis about this today also as I’m having a similar issue. We’ve loaded simple sidebars on my client’s pages and none of those sidebars appear on those pages (instead, the primary sidebar) as long as the Genesis CPT Archive plugin is running.
-
AuthorPosts
You must be logged in to reply to this topic.