+91 9717203377

Monthly Archives: December 2013
Uncategorized

Numeric pagination in wordpress

In wordpress we can split lists of posts or a single post into multiple pages for “paged” navigation. From admin we can set number of posts display. Go to wp-admin > Settings > Reading. The “Blog pages show at most” value will overrides number of posts display. Most of the themes have “previous page” and […]

Read More...
Uncategorized

date month in your language

In php preg_replace is a function which perform a regular expression search and replace. The pattern to search for. It can be either a string or an array with strings. Here is code for change month name in any language. In the code I have used portuguese language code. this is simple replacement of pattern. This code can be use in function.php of theme and it will work in theme and change month name on the fly.

Read More...
Uncategorized

sql server datetime to mysql

Sql Server datetime use microseconds, while mysql doesn’t use it. For example in sql server datetime will be something like 2012-12-11 01:12:33.13 Here last 13 is microsecond. In mysql it will be 2012-12-11 01:12:33 For migration we can use smalldatetime in sql server. smalldatetime in sql server is same as datetime in mysql. Many time […]

Read More...