1. Home
  2. Buddyapp
  3. Developer

Chapter: Developer

Snippets, actions, filters, examples of changing theme using code

Show profile fields in the members directory

Code Source: https://pastebin.com/raw/zpg7gwNr This snippet should be added to wp-content/themes/kleo-child/functions.php Note : You will have to adapt this function for your needs by changing the name of the fields Location and Specialization from the example shown. Field names are case sensitive and must match exactly. Examples: $location = bp_get_member_profile_data(‘field=Location’); $specialization = bp_get_member_profile_data(‘field=Specialization’); field=Location represents name of the field that we […]

Show profile fields in the profile header

Code Source: http://pastebin.com/raw/QByiEAhH This snippet should be added to wp-content/themes/kleo-child/functions.php Note : You will have to adapt this function for your needs by changing the name of the fields Location and Specialization from the example shown. Field names are case sensitive and must match exactly. Examples : $location = bp_get_member_profile_data(‘field=Location’); $specialization = bp_get_member_profile_data(‘field=Specialization’); field=Location represents name of the field that […]

Error 404 – Page not found

An Error 404 is generated when the browser is unable to find a page, image, video etc. It’s not unusual to see an Error 404 in WordPress and the most common cause is updating a custom post type or taxonomy, this can occur when updating a plugin. Resolving Error 404 Go to WP Admin > Settings > Permalinks and re-save […]

Troubleshooting an issue

Overview You may encounter various issues when building your site. This is especially true as you add more functionality from plugins and custom code. You can follow the below steps to isolate the issue you’re facing and potentially remedy the situation. For each of the steps below you will need to pure your browsers cache. This can be achieved in […]

BuddyApp Theme Hooks

Actions used in BuddyApp template: kleo_header – Used to add the header to the page – @hooked kleo_show_header kleo_before_main – goes inside div#main; after Header and Breadcrumb section kleo_before_content – render something before the main content and sidebar kleo_before_main_content – render something above the main content only kleo_after_main_content – render something below the main content only kleo_after_content – render something […]

Font Icons

BuddyApp uses IcoMoon for Vector icons. To see the icons that are included follow the next steps: 1. Go to the main package downloaded 2. Go to Assets/Fonts folder and open demo.html To extend the fonts you can put your own icomoon files in the child theme inside the assets/fonts folder. If the folder structure is missing you just need […]

BuddyApp & WP Engine

If your BuddyApp site is hosted with WP Engine then you will need some minor changes to make BuddyPress work seamlessly. This is a problem that is not related to the theme but something that has to do with WP Engine system. 1. Activate your BuddyApp Child theme if it is not already enabled. 2. Go to WP Admin > […]

Ajax Interval Refresh – Menu Notifications & Messages

BuddyApp has a feature that checks messages and notifications when BuddyPress plugin is activated. If your website has significant traffic it may be needed to increase the ajax interval refresh from WP Admin > Appearance > Customizer > BuddyPress > Live notifications Interval and add a higher value like 60000 (60 seconds).  

How to add a Populated Country List XPROFILE

Hello everyone, this topic is for those who want to have an already populated country list to user xprofile fields instead of adding one by one. Just edit the child theme file “functions.php” and paste the following code: /* If you are using BP 2.1+, this will insert a Country selectbox. Add the function to bp-custom.php and then visit …/wp-admin/users.php?page=bp-profile-setup […]