Skip to content

Instantly share code, notes, and snippets.

@kalico1
Last active April 4, 2017 04:27
Show Gist options
  • Select an option

  • Save kalico1/a5a95b98088d018d7b5477b4852b8170 to your computer and use it in GitHub Desktop.

Select an option

Save kalico1/a5a95b98088d018d7b5477b4852b8170 to your computer and use it in GitHub Desktop.
Groups index-directory.php Template
@kalico1
Copy link
Copy Markdown
Author

kalico1 commented Apr 4, 2017

This is CUSTOM code for a BuddyPress /groups/index-directory.php template, created from the parent theme Zerif Pro.

Our child theme is highly modified, including a custom community.php file (a.k.a. buddypress.php) so this code is not going to work as a straight up copy/paste -- It just serves as an example of how I cobbled the various file parts together to get a working template.

The code above is commented in 4 places where I transitioned from one fragment to another. You can search on “GROUPS INDEX TEMPLATE” to find the comments.

@kalico1
Copy link
Copy Markdown
Author

kalico1 commented Apr 4, 2017

Somewhere in here, I had to add a ?> to close the PHP. Can’t remember exactly where, but something I copied did not have a closing PHP tag. So if you get a blank screen, that would be a good place to look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment