Archive for the ‘WordPress’ Category

15 Apr 2009

WordPress [gallery]: Force x Number of Columns

Does anyone know the easiest way for WordPress [gallery] to force x number of columns display without tampering the core or manually set the columns value to the shortcode?
I could only figure out 2 possible ways:

function / code duplication
Regular expression

If you use [gallery] shortcode without setting the columns value, the default is set to [...]

11 Apr 2009

Money is the motivation

I hate to admit this but if it wasn’t for that particular someone that pay me (or was it a donation?) to update this theme, it probably took ages for me to do so.
It feels really great once you start to see the result. This probably too late to mention, but WordPress 2.7 is awesome. [...]

20 Feb 2009

Remove WordPress [gallery] shortcode embedded stylesheet

Dump this code anywhere in Theme’s template functions.php file (For example, functions.php file for a Theme named “default” would probably reside in the directory wp-content/themes/default/functions.php):

function remove_gallery_style() {
return “<div class=’gallery’>”;
}

add_filter(’gallery_style’, ‘remove_gallery_style’);

And these are the classes for your stylesheet:

.gallery {}
.gallery-item {}
.gallery-icon {}
.gallery-caption {}

17 Jan 2009

WordPress.tv

WordPress.tv — a great visual resource for those WordPress user who doesn’t like to read.

05 Nov 2008

Uninstall Option for WordPress theme

Useful uninstall option “snippet” for your WordPress theme admin option. Basically, this reverts WordPress to the default theme and removes all theme settings from the database. Change option your_theme with your own:

global $wpdb;

delete_option(’your_theme’);
switch_theme(’default’, ‘default’);
wp_cache_flush();

wp_redirect(’themes.php?activated=true’);
exit();

11 Jul 2008

WordPress Olive T-Shirt

Grab yours at WordPress Shop now.

17 May 2008

k9

Download k9 WordPress theme. Only compatible with WordPress 2.5 and above.
Features

Custom Header
WordPress Widgets

Screenshot