Archive for Plugins

Given a date, get the next or previous Monday, or Tuesday etc from the given date. This is useful when working with ical recurring dates.  If the date given is already that day of week, it is returned as the result. For example to get the following Every 20th Monday of the year, forever: DTSTART;TZID=US-Eastern:19970519T090000 [...]

Problem with getting the day of week for old dates before 1760? See this.

Here  is a simple first of several notes on useful date functions.  This function accepts  a year  (YYYY) and a Day in the year (1 to 366), and returns a DateTime Object. /* Year if format YYYY, Day in year 1 to 366 */ function dayofyear2date( $year, $DayInYear ) { $d = new DateTime($year.’-01-01′); date_modify($d, [...]

Tips on debugging your setup of the personalisation plugin

The shortcode any widget plugin can reference multiple instances of the same widget individually  by targeting the instances unique id.  If you use the general name without the id, it will list all widgets with that name. EG: [do_widget id=tag_cloud-3] or [do_widget "Tag Cloud"] The trick is to be sure that you have the correct [...]

WP Questions

Preferred Web Host

Web hosting by ICDSoft Icdsoft - Why? They are good and reasonable, used them since 2001. Read more