Buddypress how to sort Groups page alphabetically by default

In this short blog post I’ll run over how you can sort the Groups index page in Buddypress alphabetically by default (i.e. on first load of page they will be ordered by group name). Edit or override 2 of the Buddypress templates You’ll need these in your theme: wp-content/YOUR_THEMENAME/buddypress/groups/index.php and wp-content/YOUR_THEMENAME/buddypress/groups/groups-loop.php If these templates don’t … Read more

Laravel how to set a checkbox value to checked based on models value

In this post I’ll show how to set a Laravel checkbox value to checked based on the value stored on the model. In this example I’ll be using the Laravel Collective Form checkbox {{ Form::checkbox(‘collected’ /* name */, “yes” /*value*/, old(‘collected’, $gas_cert->collected==”yes”?true:false ) /* true sets checked */ ) }} In the code example above … Read more

How to override the comments form in a child theme

This is a quick post on how to provide your own comments template in your child theme ( overriding comments.php in your parent theme). You can just as easily use the same code to override comments.php if you aren’t using a child theme. Todo this you need to you need to use the filter ‘comments_template’ … Read more

How to engage your staff using your Intranet

In this article, we’ll look at some ideas for useful things to have on your intranet and how to use these to help engage your Employees, members or Volunteers. What are the benefits of engaged staff ? Happy workforce ( productive workforce, helps business be more profitable) Low Staff turnover ( saves money in recruitment … Read more