You are here: Home / About us / Beetle blog & news

Beetle blog & news

Keo & Lulu get into shape

by Darrell Kingsley last modified Aug 14, 2014 05:10 PM
New pilates and yoga studio launches in Plymouth
Keo & Lulu get into shape

Keo & Lulu pilates and yoga for all

The fit and supple amoung us are in for a treat as Keo & Lulu opens its doors with a fantastic launch party this week. Situated in an attractive location, housing new mats and a spanking new website, Plymouth will never be quite the same again.

Beetlebrow has made an attractive and easy to update site for K&L to help them promote and maintain their business. With its usual information there is also an online booking system with a payment gateway so that courses can be booked straight from the sofa.

Keo & Lulu are very excited about their new business and also the new branding and website, with its social networking plugins the site will be positively humming.

And now relax...


Under canvas in Salcombe-Regis

by Darrell Kingsley last modified Aug 06, 2014 04:11 PM
Now we do know a thing or two about camping and websites too
Under canvas in Salcombe-Regis

The sun sets over Devon

Beetlebrow has been invited to take over the reins of this lively camping and caravan web site on the Devon coast. Migrating and hosting the Wordpress site has been successful and we're now in partnership to improve the offering with some ideas we have in our rucksack. 

Carry on...

www.salcombe-regis.co.uk/

Wordpress Event Manager plugin - adding custom event attribute

by Gordon Adams last modified Aug 05, 2014 01:52 PM
Event Manager is good. In fact it is bloody good. Adding custom attributes to events is easy and well documented. However how to make these new fields searchable is a little more less obviously documented. Here's how I did it...

How to add an new Event Attribute Teacher to the events page and make it searchable.

I added the new attribute "Teacher" with allowed values "Abi" and "Lou" to the EM Events listing and single event pages. This bit is straight forward so not much detail required...

  1. First add the new attribute and its allowed values with
    Events | Settings | General 
    Event Attributes : #_ATT{teacher}{Abi|Lou} 
    It can now be added to events.
     
  2. Next add the attribute (and appropriate headings) to the templates in
    Settings | Formatting | Events.
    Both the default event list and Singel Event page templates were tweaked.
    It will now be displayed in Events.


Here's the meat. How to use this new attribute in the EM search form. Customise as you wish. I used the add themes functions.php method...

<?php
...
// START EM Custm Attribute "Teacher" search
/* Create a new search attribute form entry for our new Event Attribute "teacher" (#_ATT{teacher})
The values are hard-coded but could probably be automatically selected
Add this field to the search form using an EM action.
nb. The action doc'd here http://wp-events-plugin.com/tutorials/adding-custom-event-search-form-fields/
does not seem to exist so use the footer one for inclusion in advanced search or the header one
for normal search. Read the source Luke.
*/
function my_teacher_search_field(){ ?>
<div class="em-search-teacher em-search-field">
<label>Teacher</label>
<select name="teacher">
<option value=''>All Teachers</option>
<option value="Abi" <?php echo ((array_key_exists('teacher', $_POST)) && $_POST['teacher'] == "Abi") ? 'selected="selected"':''; ?>>Abi</option>
<option value="Lou" <?php echo ((array_key_exists('teacher', $_POST)) && $_POST['teacher'] == "Lou") ? 'selected="selected"':''; ?>>Lou</option>
</select>
</div>
<?php }
add_action('em_template_events_search_form_footer', 'my_teacher_search_field');
//
/* Hook the new search attribute teacher into default search filter,
so it isn’t ignored when Events Manager creates an events search query
*/
function my_teacher_search($searches, $array){
if( !empty($array['teacher']) ){
$searches['teacher'] = $array['teacher'];
}
return $searches;
}
add_filter('em_events_get_default_search','my_teacher_search',1,2);

/* This isn't needed. It seems that inclusion in the default_search filter
is all thats needed. See http://wp-events-plugin.com/tutorials/adding-custom-event-search-form-fields
*/
//function my_teacher_accepted_searches($searches){
// $searches[] = 'teacher';
// return $searches;
//}
//add_filter('em_accepted_searches','my_teacher_accepted_searches',1,1);

/* Can't hook into em_events_get filter as doc'd here
http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/
as we need to join with kal_postmeta and not just filter kal_em_events
so append a subquery via sql_conditions hook to find kal_postmeta using our new search attribute and return valid
posts ids for main event query that is internally appended to display.
*/
function my_teacher_conditions($conditions, $args){
if( !empty($args['teacher'])) {
$teacherval = $args['teacher'];
$conditions['teacher'] = " (kal_em_events.post_id IN ( SELECT post_id FROM kal_postmeta WHERE (kal_postmeta.meta_key = 'teacher' AND kal_postmeta.meta_value = '$teacherval')))";
}
return $conditions;
}
add_filter( 'em_events_build_sql_conditions', 'my_teacher_conditions',1,2);
//
// END EM Custom Attribute Teacher Search
...
?>

Top interior designer website

by Darrell Kingsley last modified Aug 06, 2014 03:14 PM
From Devon to homes around the UK

Sara Colledge asked Beetlebrow to revisit her existing site to make it easier to update with her new projects and also to find cool and sympathetic ways of displaying her work. We decided to build the site using the latest version of Wordpress because the system is perfect for lovely gallery presentations and incredibly swift editing of the images.

View site here www.saracolledgeinteriordesign.co.uk/

Branding for new Pilates & Yoga start up

by Darrell Kingsley last modified Jun 04, 2014 03:52 PM
Keo & Lulu are on the cusp of taking the West country by storm with their new classes of Pure Pilates and Yoga and also mixtures of the two.

Beetlebrow is currently finalising the Keo Lulu logo for promotional branding and a spanking new website will complete the launch. This will also include a booking system to be implemented a short while after the initial opening. We've never been in such good shape!