Wordpress Posts

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