Simple Sidebars and Custom Post Types Archives Plugins Conflict?

Community Forums Forums General Discussion Simple Sidebars and Custom Post Types Archives Plugins Conflict?

This topic is: not resolved

This topic contains 5 replies, has 4 voices, and was last updated by  Jami Howard Mays 1 year, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #9389

    Scott Buehler
    Participant
    Post count: 51

    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.


    TygrScott on Social Media

    #12009

    wpsmith
    Moderator
    Post count: 178

    I will look into this issue this week.


    Travis Smith | Recommended StudioPress Developer & Contributor
    WP Smith | @wp_smith | GitHub

    Due to the forums, please paste code using Pastebin, JS Fiddle (for JavaScript) or GitHub.
    How to use Firebug for Designers by SixRevisions

    #12069

    Scott Buehler
    Participant
    Post count: 51

    Thank you wpsmith, I appreciate that.


    TygrScott on Social Media

    #12816

    Bing Crosby
    Participant
    Post count: 2

    This 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!

    #21872

    Scott Buehler
    Participant
    Post count: 51

    What ever came of this wpsmith?


    TygrScott on Social Media

    #38819

    Jami Howard Mays
    Participant
    Post count: 44

    I 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

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.