WordPress.org

Ready to get started?Download WordPress

Forums

WooSidebars
[resolved] Widget areas on Custom Post Type (2 posts)

  1. sorensenss
    Member
    Posted 1 year ago #

    Similar to how you can make a custom widget area for a page, is it possible to do this with a custom post type? Individual 'resources' would have differing sidebars instead of all having the same (which I see you can do...)

    http://wordpress.org/extend/plugins/woosidebars/

  2. Matty Cohen
    Member
    Plugin Author

    Posted 1 year ago #

    Hi sorensenss,

    This is possible, yes.

    Please place the following code to your theme's "functions.php" file or in a custom plugin:

    add_post_type_support( 'yourposttypehere', 'woosidebars' );

    This enables a new tab for posts of the specified post type, a checkmark on the post type's "list" view (for enabling specific entries to have WooSidebars support) and conditions for all posts of that type. :)

    Regards,
    Matty.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic