Resolving Error with Sending Emails via SMTP Using CodeIgniter
When sending emails using the CodeIgniter Email Class, I’ve always just kept the protocol as ‘mail‘ meaning emails get sent using the standard PHP mail() function. Recently however, on an application...
View ArticleAdd Character Between Menu Items in WordPress using wp_nav_menu() Function
Allowing navigation menus to be controlled from within WordPress makes amending the sites structure a simple task for the user. When setting up a menu you’d normally register it in your theme’s...
View ArticleRemoving the Query String from $_SERVER[‘REQUEST_URI’] in PHP
When trying to get the current request URI in a PHP file you would normally use: echo $_SERVER['REQUEST_URI']; When recently using this however I found that it could also contain the current query...
View ArticleSorting a PHP Array with a Key of Decimal Type
There are many PHP functions available that assist with sorting arrays. The one we’ll be talking about in this article is the ksort() function which is intended to sort an array by key. Now, to sort an...
View ArticleHow To Install SOAP for PHP on a 1&1 VPS
If working with a third party service it’s possible that you might need to communicate with it using SOAP. This is exactly the scenario we found ourselves in today. The issue was however that the...
View ArticleObtain PostID From Within the wpcf7_before_send_mail CF7 Hook
We use the Contact Form 7 Plugin on pretty much every WordPress site we build that requires a form of some kind. On some occasions we’re required to hook into the sending of the form to do something...
View ArticleImport Frickin’ Huge XML Files With XMLReader and SimpleXML
We work with a lot of estate agent sites in our day-to-day operations. One of the tasks we normally need to incorporate into our building of these sites is importing the agent’s properties from a third...
View ArticleHow To Send Emails in WordPress using Gmail SMTP
The majority of the time we will send emails from enquiry forms using the servers’ built-in mail functionality. This means using the PHP mail() function, or letting WordPress use the mail() function...
View ArticleGet Image Alt, Caption, Description and More From Attachment ID in WordPress
Whilst working on a WordPress site recently I had a scenario where I had an image attachment ID and needed to get the alt, plus other information, about the image. Oddly, I found it very difficult to...
View Article