Stuff...

Post

Common SEO Snippets & Info

No index a webpage: <meta name="robots" content="noindex,nofollow"> http://www.robotstxt.org/meta.html robots.txt examples Disallow all User-Agent: * Disallow: / Allow all User-Agent: * Disallow: Standard WordPress robots.txt User-Agent: * Disallow: Note: due to Google now rendering pages using all css and javascript, it’s probably not a good idea to Disallow: /wp-content/plugins/ any more http://www.robotstxt.org/robotstxt.html Meta Description Length: 923px […]

Read more >>


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 […]

Read more >>


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:

Read more >>


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 […]

Read more >>


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

Read more >>


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 {} \;

Read more >>


Post

htaccess redirects

List of some basic htaccess redirect rules

Read more >>


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.

Read more >>


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

Read more >>


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 […]

Read more >>