Title: Function with Custom Post Types
Last modified: September 1, 2016

---

# Function with Custom Post Types

 *  [champsee](https://wordpress.org/support/users/champsee/)
 * (@champsee)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/function-with-custom-post-types/)
 * I noticed this [post](https://wordpress.org/support/topic/no-longer-working-for-custom-post-types-sidebars?replies=16)
   from the past. Basically, conditional widgets doesn’t work with custom post types.
 *  I was wondering if I submitted a pull request with changes to accommodate custom
   types whether you would accept it. Long time PHP and WordPress developer, though
   a little new to the this whole process.
 * [https://wordpress.org/plugins/conditional-widgets/](https://wordpress.org/plugins/conditional-widgets/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jason LeMahieu (MadtownLems)](https://wordpress.org/support/users/madtownlems/)
 * (@madtownlems)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/function-with-custom-post-types/#post-7704226)
 * > I was wondering if I submitted a pull request with changes to accommodate custom
   types whether you would accept it
 * I would certainly review it – but I can’t promise to accept it.
 * There are a few reasons I’ve been hesitant to do too much with Custom Post Type
   integration on the plugin, and the fact that the control panel for each widget
   is already pretty substantial – adding logic for every CPT would grow it significantly.
 * Additionally, many CPTs are used for things that don’t necessarily make sense
   with displaying widgets.
 * Keep in mind that working with Custom Post Types typically also includes working
   with Custom Taxonomies as well, adding more and more to the form.
 * I’m happy to take a look at a pull request, or discuss your potential implementation
   further. Thanks for your interest.
 *  Thread Starter [champsee](https://wordpress.org/support/users/champsee/)
 * (@champsee)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/function-with-custom-post-types/#post-7704229)
 * Thanks for your time in responding to my query. I realize that plugin maintainer
   is probably the most thankless job on the planet. I wasn’t thinking that I would
   tackle custom taxonomies and let the next guy take that part on. I’ve never worked
   with them, so don’t know about all of the nuances, though could certainly take
   a stab at it if you think its important.
 * I certainly understand your concern about the size of the control panel and totally
   agree that sometimes CPTs are created but never displayed as their own page. 
   That said, at the current time all widgets are displayed on all custom post types
   by default whether using your plugin or not.
 * To address the concern about the size of the control panel, we could also make
   the section headers toggle their respective sections same as the toggle to display
   the control panel in the first place. I’d be happy to put in a separate PR just
   for that functionality if you’d like.
 * Definitely want to get some idea of what parameters you are looking for before
   diving in. I realize that even if I meet those parameters that there may be something
   that prevents you from accepting my PR. Just want to make sure I’m not creating
   something that you will reject out right.
 *  [stilfx](https://wordpress.org/support/users/stilfx/)
 * (@stilfx)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/function-with-custom-post-types/#post-8245181)
 * Looking for this as well. While I prefer this plugin to others, I’ve actually
   had to use others for that exact missing functionality in certain client sites.
 * I’d also be game to help debug and feature scope this.
 * Thanks for the great plugin none-the-less.
    -  This reply was modified 9 years, 7 months ago by [stilfx](https://wordpress.org/support/users/stilfx/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Function with Custom Post Types’ is closed to new replies.

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

 * 3 replies
 * 3 participants
 * Last reply from: [stilfx](https://wordpress.org/support/users/stilfx/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/function-with-custom-post-types/#post-8245181)
 * Status: not resolved