Skip to content

Instantly share code, notes, and snippets.

View joost-abrahams's full-sized avatar

joost-abrahams

View GitHub Profile
@imjjss
imjjss / gist:1902440
Created February 24, 2012 18:02
custom Front Page for BuddyPress Groups
http://wordpress.org/extend/plugins/easy-post-types/
Step 1: Download this plugin WP easy post types and activate.
Step 2: Create a post type called Groups
Click the drop down and add new. Add a new post type with the title of a groups slug. Example: say you have a group slug like this groups/bp-tricks, you would then create a group custom type post titled bp-tricks. Add something to the post editor box and hit save.
Important: If you’ve changed the slug of your Groups make sure to use the same name for your Post type!
What we are essentially doing is tricking WP and BP into using the same URL. So by creating a custom post type with the exact URL of a group we can override the front page with a WP page and then use the post editor to create anything.
Step 4: Edit a Template
@christianwach
christianwach / bp-hide-name-field.php
Last active April 5, 2024 20:19
Hides the default Name field on BuddyPress Registration form and Profile Edit screens.
<?php
/**
* Plugin Name: BP Hide Name Field
* Description: Hides the default Name field on BuddyPress Registration form and Profile Edit screens.
* Plugin URI: https://gist.github.com/christianwach/06d878edc277ce1ca8a7e59a82052744
* Version: 1.1
* Author: Christian Wach
* Author URI: https://github.com/christianwach
*/