888888.888888.88""Yb..dP"Yb..8888b..Yb..dP.88b.88....db....8b....d8.88..dP""b8..dP"Y8
88__...88__...88__dP.dP...Yb..8I..Yb.YbdP..88Yb88...dPYb...88b..d88.88.dP...`".`Ybo."
88""...88""...88"Yb..Yb...dP..8I..dY..8P...88.Y88..dP__Yb..88YbdP88.88.Yb......o.`Y8b
88.....888888.88..Yb..YbodP..8888Y"..dP....88..Y8.dP""""Yb.88.YY.88.88..YboodP.8bodP'


88b.88.888888.888888.Yb........dP.dP"Yb..88""Yb.88..dP
88Yb88.88__.....88....Yb..db..dP.dP...Yb.88__dP.88odP.
88.Y88.88"".....88.....YbdPYbdP..Yb...dP.88"Yb..88"Yb.
88..Y8.888888...88......YP..YP....YbodP..88..Yb.88..Yb

December 23, 2008

Have you heard of NetBeans? It has been around for ages as a Java tool but now it has PHP and a whole load of goodies that make it excellent for WordPress development. Let me lay some out for you.

For this example I have created a new project in NetBeans for WordPress (There is a tutorial here if you don’t know how to do that).

The first point of note is that for some time now Jacob Santos has been diligently documenting the WordPress code. This is quite useful when you are surfing around trying to find out what you want, but with NetBeans all of this documentation is read into the code complete function. So now you have WordPress code completion. For example, if you type add_ac and then press ctrl + space you get:

Add action autocomplete

All documented WordPress functions can be found through the auto complete letting you know the parameters, the options, and even the file where it can be found. But that isn’t all. Often you want to look through the function itself to find out more. That’s easy. Right click on the function to get the menu up:

Find Declaration

Selecting find declaration will open the file and scroll to the original function declaration. I can’t tell you how many hours I have spent function hunting before now.

You might also note on that image another option marked Find Usages. Want a quick route to find every hook in WordPress? Well, actions are defined by the do_action function, so type in ‘do_action();’, right click and choose find usages. You get a handy list:

List of WordPress actions

Something else I love are the code shortcuts. For example, type in cls and then tab and you have a class declaration waiting for you to type in the name. It has loads more, functions, loops, conditions, intanceof, and you can add your own shortcuts to that list.

If you are developing for WordPress I recommend giving NetBeans a try. You might also want to take a look at this demonstration screencast that covers most of these points in an example showing how to create a flickr slideshow.

Post Image The Easy Peasy Way
Get post images?
26 comments
page 1065
Html 5 Gallery
Html5 wordpress theme?
6 comments
page 1305
Post Image The Easy Peasy Way
Wordpress get first image large?
26 comments
page 1065
Using Wordpress As A Php Framework
Wordpress create your own framework?
2 comments
page 335
Improve Your Typography With Plugins
Wordpress typography plugin?
one comment
page 721
Quick N Dirty Replacement Text
Dirty replacement?
no comment
page 122
How To Add Sidebars To A Theme
How to add pages in footer wordpress?
11 comments
page 1053
Post Image The Easy Peasy Way
How to post all gallery images in one post wordpress?
26 comments
page 1065
Post Image The Easy Peasy Way
Get attachment by post?
26 comments
page 1065
Html 5 Gallery
Html 5 tab?
6 comments
page 1305
Wordpress 25 Exif Fields
Exif info display wordpress?
12 comments
page 230
Using Your Own Url Shortener
Tiny urls htaccess?
4 comments
page 1190
Six Million Ways To Die Choose One
6 million ways to die so i chose?
14 comments
page 1128
How To Add Sidebars To A Theme
Wp register sidebars?
11 comments
page 1053
Fun With Sidebar Tabs Styling
Funwithsidebartabs customize css?
2 comments
page 336
Wpunlimited The Ultimate Wordpress Theme
Ultimate admin theme?
3 comments
page 1141
Quick N Dirty Admin Login Screen
Css login screen?
no comment
page 128
My Experience Of Flexx
Flexx theme review?
4 comments
page 1026
Fun With Sidebar Tabs Styling
Css tabcontentcontainer?
2 comments
page 336
Html 5 Gallery
Html 5 e wordpress?
6 comments
page 1305
Dont Mess With My Toot Toot
Toot html5?
16 comments
page 599
Using Your Own Url Shortener
How to create your own url shortener?
4 comments
page 1190
Dont Mess With My Toot Toot
Wordpress custom content types?
16 comments
page 599
Using Your Own Url Shortener
Funny url shortener?
4 comments
page 1190
Post Image The Easy Peasy Way
Addd multiple images to post wordpress?
26 comments
page 1065
Theming Habari Vs Wordpress
How to create a habari theme?
13 comments
page 440
Upload From Url
Upload by url?
6 comments
page 326
Html 5 Gallery
Html5 image gallery?
6 comments
page 1305
Post Image The Easy Peasy Way
Add image url to page data wordpress?
26 comments
page 1065
Wpunlimited The Ultimate Wordpress Theme
Html 5 photo gallery?
3 comments
page 1141
Html 5 Gallery
Image galleries in html5?
6 comments
page 1305
Six Million Ways To Die Choose One
Six million ways to die?
14 comments
page 1128
Html 5 Gallery
Html 5 foto gallery?
6 comments
page 1305
  1 query every 1128 seconds, updated 1 seconds ago.
Wednesday, 3pm
 __
(__)
   `

 NetBeans ? WordPress ???????? – ????????

[...] Why you should try Netbeans – WP FUN [...]

Wednesday, 6pm
 __
(__)
   `

 edkohler

Wow, this looks impressive. Thanks for breaking things down. I have a few WP issues I've been meaning to address but wasn't sure how to go about it so I'll give this a try.

Wednesday, 9am
 __
(__)
   `

 bingu

Thanks for your tips.
Netbeans is really a great PHP Editor. :)

Wednesday, 9am
 __
(__)
   `

 ??Netbeans??WordPress | ??blog

[...] ??????NetBeans???WordPress??????Why you should try Netbeans? [...]

Tuesday, 7pm
 __
(__)
   `

 Micha

Thanks for the tip! The IDE looks really nice.
At the moment i'm using Aptana Studio.

Tuesday, 5pm
 __
(__)
   `

 Scott

I agree as I have been using netbeans as a php editor and except for a few css editor issues, Netbeans is perfect! I have finally pulled the plug on using dreamweaver and have gone to Netbeans only…I am not looking back!