A

Quickest way to get timestamp of a time in a particular timezone in PHP

Playing with timezone conversions can be crazy, it still confuses me every time and I have to wait a minute to run some test code to figure out what's it that I am trying to do here. Anyway, the quickest way I have to get timestamp of a time in particular time zone is DateTime […]

How to use a single image on Facebook when your website is shared

Ideally, you would want to use context specific images to be shown on Facebook whenever any page of your WordPress website is shared on Facebook, but if for some reason you want only a single image to be shown irrespective of the context, that can be configured using my plugin - Facebook Like Thumbnail though […]

WordPress plugin to email commentators of posts

The need to email came up when I wanted to notify commentators of my previous announcement posts regarding my plugin - Facebook Like Thumbnail, about its new version which is a rewrite and has lot of goodness in it. I looked it up, and I found a plugin by Yoast, which just adds all the […]

Updated Facebook Like Thumbnail WordPress plugin (v0.3.1) released

I just pushed out the latest version of my plugin Facebook Like Thumbnail, v0.3.1 to be precise, on WordPress.org plugins repo. It should show up in your WordPress admin shortly if you are using it and if not, then here is yet another reason to try the plugin out if random or unwanted images show […]

Get WordPress images from a different site

Developers usually work on their local installs before pushing any changes to the live or production server and that's how a developer's workflow should be. In order to setup a local or dev install on which a developer can work or test, they need to pull down the codebase and database dump to exactly mirror […]

Use WooCommerce product image as its category image

WooCommerce is capable of showing category as well as products on its shop page and this is configurable from settings available in admin side but I can totally imagine running into the situation that categories don't have their images uploaded and they will end up showing placeholder / default image. A quick solution would be […]

How to use WooCommerce email design in custom emails

Let's say you have already styled your WooCommerce email and want to use the same email design for a custom email, how will you go about that? Turns out its pretty easy. For the sake of simplicity , I am assuming you have the needed data in variables, change them accordingly as per your code. […]