Buddypress cheat sheet
in Member loop / directory – show xprofile fields echo bp_get_member_profile_data( ‘field=Short Bio’ ); Just find the field in wp-admin and pop into the function above and echo it.
in Member loop / directory – show xprofile fields echo bp_get_member_profile_data( ‘field=Short Bio’ ); Just find the field in wp-admin and pop into the function above and echo it.
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
Recently I was working on a Laravel application with some ajax, and I was getting a 419 error after firing an Ajax call to a Laravel controller. Laravel requires a token to be sent on some types of requests (POST being one of them), this is to prevent Cross site request forgery ( e.g. a … Read more
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
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
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