Stuff...

Post

Windows Software for Web Developers/Designers/SEOers

Ok, work in progress, but I am rebuilding my Windows PC. I am getting rid of Windows 8.1 as I simply can’t live with it anymore, I’ve tried, but it’s no good I want to go back to Windows 7. Now rebuilding this Windows PC is not something I’m doing on a whim, it’s a […]


Snippet

Disable All WordPress Automatic Background Updates

To completely disable all types of automatic updates, core or otherwise, add the above to wp-config.php file:


Post

Linux rm command for removing files in directories

Delete files from a directory: rm [options..] [file|directory] -f Remove all files in a directory without prompting the user. -i Interactive. With this option, rm prompts for confirmation before removing any files. -r (or) -R Recursively remove directories and subdirectories in the argument list. The directory will be emptied of files and removed. The user […]


Post

Upgrade Google Chrome in Linux Debian

How to upgrade just Google Chrome in Linux (Debian) To upgrade Google Chrome to the latest stable version: sudo apt-get –only-upgrade install google-chrome-stable Might need to kill all instances of Chrome, to kill all instances of Chrome: sudo pkill -15 google-chrome


Post

Setting WordPress File/Folder Permissions in Linux Terminal

To set the WordPress file and folder permissions in Linux terminal: Go to the WordPress directory: cd /path/to/wordpress/ Change all directories to 755: sudo find . -type d -exec chmod 0755 {} \; Change all files to 644: sudo find . -type f -exec chmod 0644 {} \;


Post

htaccess redirects

List of some basic htaccess redirect rules


Snippet

WordPress conditional for custom post type

A simple conditional if statement for custom post types i.e. display different content if it’s the defined custom post type. Just replace custom-post-type with the ID you have given your custom post type in register_post_type within your theme’s functions.php (usually) and then echo the content you want blah blah.


Post

Apache 2 Basic Terminal Commands

Debian & Apache 2 Start/Stop/Status sudo service apache2 start sudo service apache2 stop sudo service apache2 status New vhost sites sudo a2ensite local.newsite.com or sudo a2ensite local.newsite.com.conf add a new local site – afterwards run sudo service apache2 reload sudo service apache2 reload reload apache CentOS Start/Stop/Status sudo /etc/init.d/httpd start sudo /etc/init.d/httpd stop sudo /etc/init.d/httpd restart sudo /etc/init.d/httpd status


Post

Enter and display code snippets in WordPress custom fields

If you use a WordPress custom field to display code snippets like I do on this site, then you will notice that if you enter the full code with <\?php e.g. <?php echo get_post_meta($post-&gt;ID, 'custom-post-name', true); ?> It will not display as you need to tell your template to escape the special characters. To do […]


Snippet

WordPress simple list of the current posts tags

Simple function to print a list of tags which the current post is tagged with e.g. Outputs: <ul> <li><a href=”http://taglink1″ rel=”tag”>Tag 1</a></li> <li><a href=”http://taglink2″ rel=”tag”>Tag 2</a></li> <li><a href=”http://taglink3″ rel=”tag”>Tag 3</a></li> </ul>