News & Blog

Remove Whitespace Between List Items Generated By wp_nav_menu()

September 26th, 2014 - Posted by Steve Marks to (X)HTML / CSS, PHP, Web Development.
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 causing spaces between the menu items on the frontend. My list items had the ‘display...

Change Author Base URL in WordPress Permalinks

August 26th, 2014 - Posted by Steve Marks to PHP, Web Development.
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 the users name. This is fine and works if users in the system are author...

WordPress Plugin Released: Link Picker Field for Advanced Custom Fields

July 25th, 2014 - Posted by Steve Marks to PHP, Web Development.
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 > In the standard ACF plugin there are a few ways to allow a user to select a link: 1....

Why a Custom Taxonomy Might Not Be Returned in WordPress

July 14th, 2014 - Posted by Steve Marks to PHP, Software, Web Development.
When creating a plugin or theme in WordPress there might come a time when you need to use custom taxonomies. As well as creating the taxonomies in the first place, you might need to work with them in some other way too; be this outputting them in a list, or programmatically assign a post t...

Prevent WordPress Redirecting to Nearest Matching URL

July 4th, 2014 - Posted by Steve Marks to PHP, Web Development.
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 they’ve slightly mistyped a page’s URL. An example of this would be; ima...

Laravel Google Maps V3 API Package

July 2nd, 2014 - Posted by Steve Marks to Javascript / jQuery, PHP, Web Development.
Almost four years have passed since I first created my Google Maps V3 API CodeIgniter library. During this time it’s been downloaded by tens of thousands of developers and is by far the most popular page on this blog. With the Laravel framework coming onto the scene over recent years...

Get Currently Selected MySQL Database with PHP

July 1st, 2014 - Posted by Steve Marks to MySQL, PHP, Web Development.
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 following query: SELECT DATABASE(); Pretty easy right? We can do exactly the same thing in ...

Debugging Why Your Comment Reply Links Aren’t Showing in WordPress

June 18th, 2014 - Posted by Steve Marks to PHP, Web Development.
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 capabilities to handle comments, adding them to any blog post or news article is r...

How to Load jQuery in the Footer of a WordPress Website

June 6th, 2014 - Posted by Steve Marks to Javascript / jQuery, PHP, Software, Web Development.
If you’re familiar with building WordPress sites that use jQuery you may have seen it included using the following method in the header of a website: wp_enqueue_script('jquery'); wp_head(); You enqueue the script and then when wp_head() is called, the jQuery library will be loaded fo...

How To Bulk Delete Product Variations in WooCommerce

June 3rd, 2014 - Posted by Steve Marks to MySQL, PHP, Software, Web Development.
When building any kind of E-Commerce site in WordPress I always have, and will for the foreseeable future, use the fantastic WooCommerce plugin. I’ve blogged about WooCommerce a few times in the past as I’ve come across various special requirements. Today is no different as I d...