Article of the week

Setting home and siteurl dynamically in Wordpress

Setting home and siteurl dynamically in Wordpress

10 Dec 2016 09:44:06


Article on how to leverage WordPress hooks to set home and site_url dynamically.


If for some reason you have set siteurl and / or home options wrong in your WordPress installation database and as a result can't access admin panel, or perhaps have a reason not to change these options in wp_options table, you can overwrite them either in wp_config.php or ...

Read full article »

Recent articles

Installing WordPress language files automatically

20 May 2017 22:03:03

Web development

Installing WordPress language files automatically

Installing language file(s) is one of possibly hundreds small tasks one has to plod through while building a multilingual website or blog with WordPress. Mostly due to being documented well, the task is not difficult to carry out. Nonetheless, it diverts attention from other ...

Read more »

Insertion Sort algorithm and sorting dates in PHP

03 May 2017 14:04:47

Web development

Insertion Sort algorithm and sorting dates in PHP

When it comes to dealing with dates and times in PHP, one look at the language related manual pages is enough to concolude, there is a daunting number of various functions for all sorts of purposes, from stuff for managing timestamp and timzones to routines for formatting and ...

Read more »

Sorting UTF-8 strings in PHP

29 Apr 2017 16:41:28

Web development

Sorting UTF-8 strings in PHP

When trying to sort a list of strings in PHP, one needs a reliable way of comparing the strings first. PHP has some nice comparison functions, notably strcmp. Strcmp function works fine for ASCII character set, in which the same number of bits ( 7 ) is used to encode a ...

Read more »

Secondary database query and shortcodes in Wordpress

20 Apr 2017 11:14:15

Web development

Secondary database query and shortcodes in Wordpress

Secondary database queries are queries that you do in Wordpress once the main, URL-based query has been performed. Typically, these extra queries are used to fetch data like featured or category post and embed it on in a section of a template file. Alternatively, the data goes ...

Read more »