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...
If you want to control what image and content Facebook uses when someone likes a post/page on your WordPress site, then add this snippet to your theme functions.php. Any Facebook likes will then use the featured image from that post or page. A similar thing can be done with Twitter – called Twitter cards – […]
Continue reading...
The next update for the Church Admin plugin will make an important change to the way people are stored. Up to now each database row has contained a family, which limits the usefulness of the plugin as churches get larger (Perhaps husband and wife are in different small groups, or a teenager is in a […]
Continue reading...
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...
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...
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...
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...
I recently had a problem running a php script which had an include() in it using cron. It worked fine in normal testing, but not as a cron job. The reason is that when browser testing the working diorectory is the script’s directory. Cron uses the php location as the working directory, so the relative […]
Continue reading...
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...
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...