How to Show a Different WordPress Theme based on IP Address [SOLVED]

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 visitors. A search on uncle google did not yield any decent results and we did not want a bloaty third party plugin slowing things down and in the end we figured that the best way will be to...

Read More Here >>

[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 the page with all the add ons, so makes the checkout page look HUGE! My idea, was to add a checkbox asking the user if they wanted to gift wrap the order and then when checked, a list...

Read More Here >>

[SOLVED] MAMP – allowing clients to view dev sites on your local machine (with dynamic ip)

As a web developer, I like to work on web sites on my local machine and then give clients a link to the site which is hosted on my local machine so they can view progress. This save me A LOT of time syncing with remote servers as the client can view the dev site in real time on my computer. The link I give to the client looks something like this: http://dev.theirdomain.com so essentially its not any weird hostname, its a very familiar and easy to...

Read More Here >>

[SOLVED] How to remove 2FA from WHMCS Login Page

WHMCS is great, for the most part, but last night I tried to login to my WHMCS admin panel with my google two factor auth only to be met with an error saying my 2fa code was incorrect. I even tried using the backup code and still met with an error. I raised a ticket with WHMCS 12 hours ago, no response yet. GRRRRR! THE SOLUTION If you have access to the WHMCS database through phpmyadmin or similar then find the table called: tbladmins. Then find...

Read More Here >>

[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 twists. Now, I have a custom post type called “faq”. To get the “terms” or “tags” for the “faq” post type you need to know what...

Read More Here >>
NAVIGATION MENU