This is just what every theme developer wants, a list of posts, pages and categories to include in wordpress for test every theme with images, alignments, comments, lists…
Everything is downloadable for free at WPCandy: Easier Theme Development with Sample WordPress Content — WPCandy
A lot of developer actually use wp_head to insert scripts in a wordpress theme, but the correct way is use wp_enqueue_script.
This is to include jquery:
wp_enqueue_script('jquery');
If you want to include a different version of jQuery you can use these lines of code in your -theme-/functions.php or in your plugin:
<?php
function my_init_method() {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', 'http://code.jquery.com/jquery-1.4.2.min.js');
}
add_action('init', 'my_init_method');
?>
There are two common used jQuery CDN for jQuery:
http://code.jquery.com/jquery-1.4.2.min.js
http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
Links
wp_enqueue_script: Function Reference/wp enqueue script
jQuery CDN URLs: http://docs.jquery.com/Downloading_jQuery
WordPress 3.0 is now available for download!
This is an official video showing the new features.
WordPress › Blog » WordPress 3.0 “Thelonious”.
For everyone who don’t believe that PHP could be an enterprise solution I only have a small quote:
Facebook, WordPress.com, Digg, Wikipedia, Flickr — all dynamic PHP + MySQL.
If you want to disable the autosave function of wordpress you can do it with some lines of code.
Copy this lines in a disable-autosave.php file, then put this file in /wp-content/plugins directory and active the plugin. It works!
<?php
/*
Plugin Name: Disable Autosave
*/
function disable_autosave() {
wp_deregister_script('autosave');
}
add_action( 'wp_print_scripts', 'disable_autosave' );
?>
Complete guide on creating a newsletter for your wordpress blog through feedburner:
A complete guide to creating widgets, including the options editing.
In this tutorial, I’ll walk you through the steps of setting up a widget, its settings form, and displaying it on your site. At the end of the tutorial, you can download an example plugin to build from. Of course, you can apply this to your themes as well.
via The complete guide to creating widgets in WordPress 2.8.
another resource: Creating Custom WordPress Widgets
Step-to-step guide to set up Wordpress with all the main CDN service providers.
via HowTo: Configure Wordpress To Use A Content Delivery Network (CDN).
A small cheat sheet of wp’s database functions.
In your own functions put this line of code to be able to use wp’s db:
global $wpdb;
Get a field
$field = $wpdb->get_var($sql);
Get a single row
$row = $wpdb->get_row($sql);
Get some rows
$rows = $wpdb->get_results($sql);
Escape an input
$value = $wpdb->get_escape($input);
Perform a query
$n = $wpdb->query($sql);
WP Tables’ name
You can use
$mylink = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = 10", ARRAY_N);
Return format
In get_row and get_results you can specify in the second argument the format
More info
Function Reference/wpdb Class « WordPress Codex.
$mylink = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = 10", ARRAY_N);
There are some usefull informations to start developing your wordpress plugin: