April 28, 2009

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?



Wordpress get attachment title?
26 comments on page 1065

Wp get all images in post?
26 comments on page 1065

Html5 gallery?
6 comments on page 1305

Html5 gallery?
6 comments on page 1305

Html5 photo gallery code?
6 comments on page 1305

Wordpress plugin development?
2 comments on page 1373

Html5 photo album?
6 comments on page 1305

Html 5 photo gallery?
6 comments on page 1305

Charcoal theme?
2 comments on page 959

Wpupdatepost wordpress?
no comment on page 122

Wordpress fun?
2 comments on page 1376

Get url of featured image wp?
26 comments on page 1065

Theposts filter?
11 comments on page 124

Addsettingsfield css id?
3 comments on page 793

Fun wp theme?
2 comments on page 1376

Get featured image id wordpress?
26 comments on page 1065

Photo album in html5?
6 comments on page 1305

Addsettingsfield args array?
3 comments on page 793

Url shortener?
4 comments on page 1190

Wordpress fun plugin?
2 comments on page 1376

Wordpress html picture code?
21 comments on page 1073

Intensedebate blocking css?
7 comments on page 1175

Charcoal theme?
2 comments on page 959

Wordpress trim title?
no comment on page 1371

Wp categories vs tags?
12 comments on page 7

Clear wp cache?
9 comments on page 1310

Wordpress image attachment metadata?
26 comments on page 1065

Funny wordpress template?
2 comments on page 1376

Disqus formatting?
7 comments on page 1175

Anchor tag with timthumbphp?
26 comments on page 1065

Wordpress function attachment?
26 comments on page 1065

Post attachment in category?
21 comments on page 1073

Wordpress theimage?
26 comments on page 1065

Wordpress fun plugins?
2 comments on page 1376

Wordpress chat?
no comment on page 1308

Wordpress post title spacing?
no comment on page 1371

Html image gallery code?
6 comments on page 1305

Polldadylogo?
2 comments on page 42

Polldadylogo?
2 comments on page 42

Wordpress fun plugins?
2 comments on page 1376

Tableprefix wp?
2 comments on page 1374

Html5photo gallery?
6 comments on page 1305
  every 2073s, 1s ago, in 0.03s.
 __
(__)
   `
 Glenn Bennett

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

 __
(__)
   `
 Justin Tadlock

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.


0s