A colleague and I recently stumbled on a situation where we had to show one wordpress theme to the web site visitors but show a different theme to ourselves so we can develop the new theme on the live site but not showing the development theme to the web site...
Wordpress
[SOLVED] WooCommerce conditional fields for gifts options on checkout
Built a web site recently using WooCommerce and decided that a gift wrapping option would be wonderful idea when user checks out. However, the WooCommerce Checkout Add-Ons plugin whilst its great, is still in its infancy and on the checkout page, it simply populates...
[Solved] Get Array of Terms for Custom Post Type Outside of Loop with Post ID
Every stone I overturned looking for the answer to this issue I was met with "use wp_get_post_terms()" but unfortunately it does not work on custom post types. The solution, after much digging and experimenting is to use get_the_term_list() but with a couple of...
[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...
[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...
[solved] .htaccess not working in wordpress sub directory
Today, one of my clients mentioned that his rest api was not working and was returning 404 errors and the iphone app was broken due to the 404 errors. As he is running wordpress the immediate thought was that wordpress was overriding something and showing 404 errors...
Set up WordPress Database Connection for Dev Server and Live Server
If you are developing wordpress sites then more than likely you will be setting up a local dev version using something like MAMP PRO and then staging the development on your live production server at your web host. By far the most easiest way I have found to...
5 Great Things About WordPress
WordPress is an Open Source project dedicated to make online writing and publishing easier and accessible to everyone. Being an Open Source project, creating and maintaining WordPress depends on hundreds of people around the globe who work on the project for free. The...