This is a quick mention. If you build a WordPress theme, make sure it works with all types of content. I suggest using Sample Posts to highlight any styling issues in your theme.
Tag Archives: WordPress
jQuery in WordPress
I am currently in the middle of coding my first plugin for WordPress when I came across my first stumbling block…
Why doesn’t my jQuery code work in the admin area of WordPress??
After some probing on Google, the answer was revealed to me. Basically WordPress doesn’t use “$()” for jQuery, that’s reserved for ProtoType, which is also bundled with WordPress. Instead you have to use “jQuery(‘field’).” in order to get it working.
This article explains it in more detail.
Update:
You can actaully use JQuery normally within WordPress if you just wrap it appropriately.
By default I use this method:
jQuery(function($){
$('<div>').appendTo('body').html('Hello World');
});
Success
Well I thought I would have a go installing the new WordPress 2.5 to see how easy it was to setup. It was a quick & smooth installation. WordPress really does live up to its famous 5 minute install :)
I might actually write something for this site this time. I shall publish screenshots for some of my latest work and also discuss current web development projects that I am involved in.
If you do happen to stumble upon this blog by accident, welcome! But I shall just be treating this as a general dumping ground for my work and thoughts so that I can share them with others.