Category: Web Development

How to internationalise a wordpress plugin

  |   By  |  0 Comments

If you want your plugin to have a greater reach why not internationalise it – hopefully people will soon start translating it for you! Here’s what to do! Step 1 set up the plugin to load the translation files with this code, changing “your-plugin-name” as needed. //add localisation $my_translator_domain = ‘your-plugin-name’; $my_translator_is_setup = 0; function […]

Continue reading...

Using wp_editor() in WordPress 3.3

  |   By  |  0 Comments

If you want that lovely editor (like the one I am writing in right now for this post) to appear in a plugin, here’s how… $initial_data=’What you want to appear in the text box initially’; $settings = array( ‘quicktags’ => array(‘buttons’ => ’em,strong,link’,), ‘text_area_name’=>’extra_content’,//name you want for the textarea ‘quicktags’ => true, ‘tinymce’ => true […]

Continue reading...

Speeding up WordPress

  |   By  |  0 Comments

I recently rebuilt www.keepchickens.info on the WordPress platform with over 200 pages and it was slow to load. Very slow www.pingdom.com put it at between 9.4 secs and 15 secs – ouch. Consequently the hits went down 28.3% over the first month – even more ouch. The site was built around pages with no blog […]

Continue reading...

View Calendar by Categories

  |   By  |  0 Comments

The calendar-list shortcode has two new features – limit to one category and number of weeks to show To get the shortcode code simply go to the category page on the Calendar admin page… Click on the “Category List” link on the calendar page and then simply select and copy the right shortcode for the […]

Continue reading...

Using Google Directions API

  |   By  |  0 Comments

It took some boiling down, but here’s how to grab directions from Google and display them using PHP [code] function google_directions($start,$end,$mode=’driving’,$units=’imperial’,$region) { /* $start is the start address $end is the end address $mode can be ddriving,walking or bicycling $units can be metric or imperial $region biases the address geolocation to a region – use […]

Continue reading...

Church Admin Plugin Update

  |   By  |  0 Comments

I’ve just uploaded 0.32.8 of the Church Admin plugin to wordpress.org which should please our American cousins Calendar date and time formats are controlled by WordPress global settings PDF’s can now be generated in Letter, Legal and A4 sizes Mailing labels allow for a range of Avery ® formats It’ll be available through your WordPress […]

Continue reading...

The year planner

  |   By  |  0 Comments

Why is it that most calendar software doesn’t use or give that most powerful of Church planning tools – the year planner? The answer is because a year to view would mean the text is too small. So I’ve added an A4 pdf year planner to my WordPress church_admin plugin. It uses colour to show […]

Continue reading...