Wordpress Posts

Post

How to Hide / Protect Email Addresses on WordPress Websites

It’s very common to put email addresses onto the front end of websites, and why not, it’s a useful piece of information and pretty much essential on loads of websites for loads of reasons. The trouble is those pesky spammers send their bots to crawl the internet looking for email addresses on websites. They then […]

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

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-&amp;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 >>


Post

Redirect WordPress attachment urls to the file url

Been having clients upload PDF docs to WordPress in the usual way, WordPress then creates a post url for that file upload – no worries. Trouble is many clients are then using this as the link to the document and then wondering why when they click the link they are just taken to another page […]

Read more >>