
As an experiment, Matt has turned on custom headers for the plugin directory.
WordPress and WebPutty
Modernizr 101
.. or, why I like it.
When developing for the web, I’ve always been a fan of checking for functionality using object detection, I NEVER try to detect which browser you are using.
Modernizr does this much better that the other methods I’ve seen (and used).
Front-end editor in WordPress 3.3 is easy
Update: Thanks to sushkov, WordPress 3.4 adds support for DFW (Distraction Free Writing) on the front-end. See the example below.
Thanks to the work done by Andrew Ozz et al., adding a front-end editor in WordPress 3.3 is very simple. If you’re not into creating your own plugins, head over to wpmu.org, they have a great list of 10 front-end editing plugins.
Syntax:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
wp_editor( $content, $editor_id, $settings = array() ); // default settings $settings = array( 'wpautop' => true, // use wpautop? 'media_buttons' => true, // show insert/upload button(s) 'textarea_name' => $editor_id, // set the textarea name to something different, square brackets [] can be used here 'textarea_rows' => get_option('default_post_edit_rows', 10), // rows="..." 'tabindex' => '', 'editor_css' => '', // intended for extra styles for both visual and HTML editors buttons, needs to include the <style> tags, can use "scoped". 'editor_class' => '', // add extra class(es) to the editor textarea 'teeny' => false, // output the minimal editor config used in Press This 'dfw' => false, // replace the default fullscreen with DFW (supported on the front-end in WordPress 3.4) 'tinymce' => true, // load TinyMCE, can be used to pass settings directly to TinyMCE using an array() 'quicktags' => true // load Quicktags, can be used to pass settings directly to Quicktags using an array() ); |
Running WordPress locally on Mac OS X Lion and Mountain Lion
Want to run WordPress on OSX? I’ve wanted to do it for a long time and finally got a round to do it.
Multisite: See notes below if you plan to run a Network of WordPress (aka multisite) on your Mac.
New: Here’s an alternative, take a look at WordPress on Pow (includes a “how-to add MySQL, PHP5.4.9 and Ruby 1.9.3“)