by Nick | Feb 17, 2011 | Code
Use these SQL commands if you are moving your website from one domain to another. Change Siteurl and Homeurl UPDATE wp_options SET option_value = replace(option_value, 'http://www.nick-shaw.com', 'https://www.nick-shaw.co.uk') WHERE option_name = 'home' OR option_name...
by Nick | Feb 15, 2011 | Code
Used to display the last post and image from a specific category, this can be useful for latest news on a homepage or latest posts in a sidebar. <?php query_posts('cat=3&showposts=1'); // replace 123 by category ID of "Headline" ...
by Nick | Feb 14, 2011 | Code
.htaccess rule to re-direct all domains to one domain, regardless of subdomain Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} !^(.*)nick-shaw.co.uk [nc] rewriterule ^(.*)$ https://www.nick-shaw.co.uk/$1...
Recent Comments