Title: [Plugin: Conditional Widgets] 1.0.1 Fixes array warnings &#8211; Custom Post Types?
Last modified: August 19, 2016

---

# [Plugin: Conditional Widgets] 1.0.1 Fixes array warnings – Custom Post Types?

 *  [Rich Tape](https://wordpress.org/support/users/iamfriendly/)
 * (@iamfriendly)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-conditional-widgets-101-fixes-array-warnings-custom-post-types/)
 * Hey man,
 * Again, great work. The 1.0.1 update seems to have fixed the few warnings and 
   errors and now seems to work which is great. Don’t let other people who give 
   unhelpful or frankly rude feedback put you off – this is genuinely a brilliant
   plugin, so thank you for it.
 * I’m glad to hear that you’ll think about custom post type support. I had a look
   around your code and a look at the codex and it seems that what you’ll need is
   the [get_post_types()](http://codex.wordpress.org/Function_Reference/get_post_types)
   function.
 * If you stick with your current programming methodology, this means you might 
   have to dynamically generate classes for your custom walkers depending on what
   and how many custom post types there are. Probably not the most ideal solution,
   but it’ll probably work. If I can think of a neater solution, I’ll post back 
   here.
 * Again, thanks so much for this plugin.
 * [http://wordpress.org/extend/plugins/conditional-widgets/](http://wordpress.org/extend/plugins/conditional-widgets/)

Viewing 1 replies (of 1 total)

 *  [Rob Smelik](https://wordpress.org/support/users/designbuddha/)
 * (@designbuddha)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-conditional-widgets-101-fixes-array-warnings-custom-post-types/#post-2004826)
 * I very much agree with the “iamfriendly” I have personally added Conditional 
   Widgets to my standard set of plugins that I install on every WordPress site 
   I design. It is a phenomenal plugin. It’s incredibly easy to use and remarkably
   flexible. The way you thought out the admin on the widget just must makes logical
   sense.
 * I too would love to see custom post type support. I have been playing around 
   with several premium themes all of which have custom post type sections built
   in. Adding that feature would make this plugin a no-brainer for WordPress developers
   looking for complete customization solution.
 * Thank you very much for a fantastic plugin!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Conditional Widgets] 1.0.1 Fixes array warnings – 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rob Smelik](https://wordpress.org/support/users/designbuddha/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-conditional-widgets-101-fixes-array-warnings-custom-post-types/#post-2004826)
 * Status: not resolved