Debugging Why Your Comment Reply Links Aren’t Showing in WordPress
Comments are a great addition to any blog powered by WordPress. Not only do they influence interaction between your users, but they can also be beneficial when it comes to SEO. With WordPress’ built in...
View ArticleGet Currently Selected MySQL Database with PHP
When debugging a PHP script, or when your site contains multiple MySQL connections, it can be useful to know which database your PHP script is currently connected to. In MySQL you can simply run the...
View ArticlePrevent WordPress Redirecting to Nearest Matching URL
WordPress comes with a nifty feature which enables it to navigate to the closest matching URL if the one typed in doesn’t exist. This reduces the chance of a user getting presented with a 404 page if...
View ArticleWordPress Plugin Released: Link Picker Field for Advanced Custom Fields
We’re pleased to announce the release of our fourth WordPress plugin; an add-on field for the already established Advanced Custom Fields plugin. Download on WordPress > View Github repository >...
View ArticleChange Author Base URL in WordPress Permalinks
By default when viewing a user’s profile page on the front end of a WordPress site, the URL will looks something like so: http://mysite.com/author/joe-bloggs The base URL will be ‘author’ followed by...
View ArticleRemove Whitespace Between List Items Generated By wp_nav_menu()
Earlier today I was using wp_nav_menu() function within WordPress to output a navigation menu on a site. I was getting an issue however whereby the whitespace between the list items (<li>) was...
View ArticleLimit WooCommerce Product Quantity to One
Sometimes you might want to restrict customers of a WooCommerce site from purchasing more than one of any product. Fortunately this is made simple through use of the options already available in...
View ArticleResolving 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