
Widgets in WordPress 2.7 are a pain the rump to build. So much so that I wrote a plugin called Fun with Theme Widgets, which took specifically built files from a theme folder and created widgets out of them. In 2.8 however widgets are far easier to create, which leads me to wonder whether they are now easy enough for the average WordPress user to dive into.
The new widget system actually makes it hard for me to update this plugin so chances are it will stop working from 2.9 onwards. However, there are so many widgets out there that will take PHP code directly, or plugins that let you choose the parameters of a query (which posts to get, which categories to get, etc) that I wonder whether normal users ever need to create widgets anyway.
If you haven’t yet had a chance to see how the new widgets are created I recommend you take a quite read of Build a WordPress 2.8 Widget over at Wp Engineer. I think you will agree that it is pretty easy.
I don’t think that there is a massive gap between changing your own theme and using the template at the top of that post to create your own multiple use widget in functions.php but I am not an average user. So tell me, firstly, how comfortable would you be writing your own widgets with this?
Secondly, and more importantly, do you think there will ever come a time when you need to create your own widget anyway?
(__)
`
Hey Andrew,
I’m not a usual wordpress user maybe, but as a coder I found making some php code a pain so I created a site that turns a bit of php code into a wordpress widget. It’s call widgetifyr.com. Not I make a lot of widgets. It lets me make widgets my way. I there are tons of plugins available, but they always seem to have a few things I don’t like. Now I can just yank out the core code and make my own widget or find some php code that does what I need and quickly turn it into a widget.
Let me know what you think.
Thanks
Glenn
(__)
`
I don’t feel widgets are that much easier than before. The major difference now is the standardization of how they’re coded. It’s just easier to not make mistakes. Well, there’s quite a bit less coding. I can’t really see Average Joe developing his own widgets. PHP knowledge is still required to make something cool.
Of course, I’m not an average user. I could be completely off here.