A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

Bash script to backup a WordPress web site

The script ( for backing up a site has been modified. It now accepts parameters.

Parameter 1: domain Parameter 2: database [optional] Parameter 3: subdomain [optional]

Run as root

/home/root/sites/ matt_wp matt



if [ -z “$SUBDOMAIN” ] then if [ -z “$DBNAME” ] then mysqldump $DBNAME > /var/www/vhosts/$SITE/httpdocs/$DBNAME.sql fi tar […]

Saturday morning at Uncle Merlin’s lake

is_home() not working in my WordPress plugin

When using is_home(), is_category(), is_page() etc. in my WordPress plugin that displays category-based ads, they kept returning NULL.

My problem was that I was calling this these function directly in my plugin. I resolved this by adding these call to my adHeaderSetup() function and setting the hook add_action(‘wp_head’, ‘adHeaderSetup’);