Forum Replies Created
-
In reply to: fetching specfic role users
Try:
<?php $experts = get_users( 'fields=ID&role=expert' ); $args = array( 'include' => $experts, 'per_page' => 500 // the number of members that you have ); if ( bp_has_members( bp_ajax_querystring( 'members' ) . $args ) ) : while ( bp_members() ) : bp_the_member(); ?>In reply to: Custom Profile Group doesn’t show when logged outJust guessing, but you are using the
bp_after_has_profile_parse_argsfilter twice.
Remove the second one that callshide_profile_groupand see what happens.In reply to: bp_signup_email_value()Use google to find where a function is located.
Google returns results like this:
http://hookr.io/functions/bp_signup_email_value/In reply to: Duplicate Groups ComponentRe #2 – you can add a tab and content to profile pages. And you can over-ride the profile groups template to not show parks.
Re #1 – you don’t need to modify core code.
#3 – yes, you can contact me thru my profile
In reply to: Invalid argument supplied for foreach()Have you tried the usual first steps re debugging?
Turn off other plugins.
Switch to a WP theme like 2015.In reply to: Duplicate Groups ComponentRe #2 this is a much better approach than using group_meta…
https://codex.buddypress.org/developer/group-types/
Then use the group type to determine if your extra tabs should be added to a group via the BP_Groups_API
In reply to: Duplicate Groups ComponentYou have 2 choices, both require some hours of work and good coding skills, which is why a ‘solution’ was never shown, just explained.
1. Create a new component based on the Groups component
2. Use groups_meta to add a field re ‘park’ and use that to determine if your extra tabs should be added to a group via the BP_Groups_API
https://codex.buddypress.org/plugindev/how-to-edit-group-meta-tutorial/
https://codex.buddypress.org/developer/group-extension-api/In reply to: Filter Autocomplete IDs?That filter is only in the default BP theme.
Unless you are specifically using that theme, the filter will not be present.The legacy theme doesn’t have the same filter.
Try using this filterbp_members_suggestions_get_suggestions
found inbp-core\classes\class-bp-members-suggestions.phpIn reply to: WP Roles vs BP Member TypesThere is no connection between them. They are separate classifications.
In reply to: BuddyPress Newsletter relaunchedGlad to hear it.
imo – you should add to this thread whenever there is a new issue of the newsletter.In reply to: Code visible on ‘change cover photo’ tab?That is used by the
backbone– javascript library which is included with WordPress.
Perhaps something, maybe your theme, is preventing it from being loaded.
Try switching to a WP theme like 2015.In reply to: WP V 4.7.2In reply to: WP V 4.7.2It looks like your theme has replaced the toolbar… ?
To confirm that the issue is due to your theme, try switching momentarily to a WP theme like 2015.
In reply to: Can’t display user profile fieldsOn a test site, your template shows all field labels and data.
So something is happening specific to your install.Have you tried switching themes?
Are you sure that the fields have data?
In reply to: BP 2.8.0 Update Broke ProfilesDoes the profiler show that BP is loaded before you call your function?
If not, then it will fail.Try placing your function in bp-custom.php
In reply to: BP profile issueYou didn’t do anything wrong. These forums are strictly volunteer. There is no guarantee that a question will be answered.
I don’t know what is generating that link. If I did, I’d suggest a way to remove it.
The only suggestion I can make is to check your permalink settings, and resave them.In reply to: Can’t display user profile fieldsPlease use pastebin or gist – both are free – to share your code.
Based on the info you’ve provided, we can’t make suggestions.In reply to: BP 2.8.0 Update Broke ProfilesUse the same hook in the same way as you did above.
In reply to: BP 2.8.0 Update Broke ProfilesYou need to pass additional fields – and in the correct order.
http://hookr.io/functions/xprofile_get_field_data/In reply to: BP 2.8.0 Update Broke ProfilesYou’re probably calling
xprofile_get_field_data()too early.
Wait until BP is loaded, use thebp_readyhook.>Am I on the right track?
This is wrong.
bp_get_group_id(get_current_user_id());
Look up that function to see how it is used.Ask LearnDash how to get the group id on the LearnDash screen that you want to use.
In reply to: Hide membersYou need to create the code. Do so in bp-custom.php.
Try using
bp_get_group_id().
If you can get the group id, then usegroups_get_group_admins( $group_id )to get the group admins.
Pull out the user ids of the group admins and use the ids to get the user data that you want.NOTE: you should be asking LearnDash these questions.
By asking them here, you are asking volunteers to answer questions about a third-party premium plugin.
Therefore, you most likely won’t get much assistance here.In reply to: Let logged out users access the activity pageHave you tried one of the privacy plugins?
For example: https://wordpress.org/plugins/bp-simple-private/Try :
wp_redirect( 'https://failtrafic.ro/wp-admin/' ); exit;