Community Forums › Forums › Archived Forums › General Discussion › Simple Sidebars and Custom Post Types Archives Plugins Conflict?
- This topic has 5 replies, 4 voices, and was last updated 12 years, 10 months ago by
Jami Howard Mays.
-
AuthorPosts
-
January 3, 2013 at 10:47 pm #9389
Scott Buehler
MemberIf 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.
TygrScott on Social Media
January 14, 2013 at 11:50 pm #12009wpsmith
MemberJanuary 15, 2013 at 10:40 am #12069Scott Buehler
MemberThank you wpsmith, I appreciate that.
TygrScott on Social Media
January 18, 2013 at 3:06 am #12816Bing Crosby
MemberThis 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 #21872Scott Buehler
MemberWhat ever came of this wpsmith?
TygrScott on Social Media
May 1, 2013 at 2:09 pm #38819Jami Howard Mays
MemberI 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.
Jami Howard Mays, HBIC, Imaj Works | Athens, Georgia
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.