Shell script to create new site template
Having a dedicated Linux box without any form of control panel on it is becoming the norm for me. To help me out, I created a small shell script to Read More »
Having a dedicated Linux box without any form of control panel on it is becoming the norm for me. To help me out, I created a small shell script to Read More »
Quite often, especially when working with WordPress sites, I need to update content with a new web address. This happens when a site has been on a preview domain whilst Read More »
Usually, all data should be ready for display by the time it hits a smarty template, as it’s a presentation layer. However, from time to time, there is a need Read More »
You can exclude directories when tar/gzipping folders in the following way:
|
1 2 3 |
tar -cvf httpdocs_bk.tar.gz /var/www/vhosts/domain.com/site --exclude "/var/www/vhosts/domain.com/site/excludeddir1" --exclude "/var/www/vhosts/domain.com/site/excludeddir2" |
With the advent of XHTML Strict 1, you can no longer use target=”_blank” on an A tag in your code. The only solution for this is to use Javascript to Read More »
I’m using Contact Form 7 on a website I’m building. Currently, Contact Form 7 uses shortcodes, meaning you can drop forms into posts. Something like
|
1 |
[contact-form 1 "Sign up form"] |
You can’t use shortcodes Read More »
I’m a little disappointed JQuery doesn’t have something uber fancy for this. Something that always catches me out is when trying to replace occurrences of a string, it only replaces Read More »
Since Twitter changed things, you’re probably better off looking at A WordPress Twitter stream, without the RSS… WordPress comes with a version of Magpie RSS as part of Read More »
This problem has come up once before, but I found another way of dealing with the issue. However, this time, it seems that I’m going to need to find a Read More »