[SOLVED] Add a Custom Column in Custom Post Types Admin Screen Displaying Relational Data From Another Custom Post Type

I had a situation recently with WordPress where I had to display the Company Name against the Attendee profile when viewing a list of Attendees inside the WordPress admin. Basically there was two custom post types (CPT’s), one was called “attendee” and the other “companies”. When editing an Attendee record we would assign it to a company so that we knew which Company the Attendee was assigned to. After some ideas from...

Read More Here >>

[Solved] Turn off 2FA on WHM with SSH Command Line

This morning I tried logging into one of my WHM servers with 2FA and it was not working. (BTW: If you don’t have 2FA setup on your WHM login page then you are missing a great security feature on your Cpanel server). I checked the Cpanel forums and found a page here showing how to turn off 2FA on WHM for a user using the API through command line, BUT IT DID NOT WORK.  –user=root TwoFactorAuth remove_user_configuration THE SOLUTION After...

Read More Here >>

[SOLVED] Using mysql_query in WordPress After PHP 5.5

Okay, I am a bit old skool and still use mysql_* and yes I can hear some of you sighing, face palming yourselves and rolling your eyes but I have built thousands of sites over the years, many of you were in diapers when I started and I guess I have been a little slow on the uptake as my code has always been secure and solid, however, yes I realise I need to stop using it because as of PHP 7 it will be removed completely (apparently). My hope is that...

Read More Here >>

[Solved] CTRL + C between Mac and Remote Windows Machine

I use a mac as my main machine, but very often I need to login to remote windows machines using Windows Remote Desktop for Mac to either work on native windows applications or do server tasks. Making the mental switch though between CMD + C and CTRL + C quite often results in errors. So, I have found the solution in the form of a piece of free mac software called “KARABINER” which allows you to switch the keys when you are connected through...

Read More Here >>

[SOLVED] Force SSL and WWW on Sub Domain with .htaccess

I had someone today who was having some issues with their financial site and the SSL cert so I solved the main issue but noticed that visitors could navigate to https://www.{subdomain}.{domain}.com (with www). Ideally, to keep things clean, they need to go to https://{subdomain}.{domain}.com (without www). So after scrambling around for a bit trying various methods I settled on the solution below which you can place in your root .htaccess file and...

Read More Here >>
NAVIGATION MENU