Title: [Plugin: Post-Specific Widgets] Does it work with post and custom post types
Last modified: August 20, 2016

---

# [Plugin: Post-Specific Widgets] Does it work with post and custom post types

 *  [Enej Bajgorić](https://wordpress.org/support/users/enej/)
 * (@enej)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-post-specific-widgets-does-it-work-with-post-and-custom-post-types/)
 * Hi
    Great Plugin! I manged to get it working for pages, but am wondering how 
   you would go about adding the same functionality for posts or custom post types.
   I tryed adding the code * Sidebars: primary (Primary Sidebar), secondary (Secondary
   Widgets) to a post.php theme file with no result.
 * Thanks E
 * [http://wordpress.org/extend/plugins/post-specific-widgets/](http://wordpress.org/extend/plugins/post-specific-widgets/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Marcus Downing](https://wordpress.org/support/users/marcusdowning/)
 * (@marcusdowning)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-post-specific-widgets-does-it-work-with-post-and-custom-post-types/#post-2414485)
 * I just tried and it worked for me. What I did was to use a `single-post_type.
   php` template (such as `single-movie-review.php`, etc), and added the header 
   to that.
 * In the case of custom post types the order it looks for templates is:
    - single-_post\_type_.php
    - single.php
    - index.php
 * which should match up to the [template hierarchy](http://codex.wordpress.org/Template_Hierarchy#Single_Post_display)
   that WordPress uses. In the case of a `post`, the file would be `single-post.
   php`

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Post-Specific Widgets] Does it work with post and custom post
types’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/post-specific-widgets.svg)
 * [Post-Specific Widgets](https://wordpress.org/plugins/post-specific-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-specific-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-specific-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/post-specific-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-specific-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-specific-widgets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marcus Downing](https://wordpress.org/support/users/marcusdowning/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-post-specific-widgets-does-it-work-with-post-and-custom-post-types/#post-2414485)
 * Status: not resolved