Skip to:

Search Results for 'how to hide pages'

Viewing 25 results - 1 through 25 (of 287 total)
  • Author
    Search Results
  • #331822

    To achieve the functionality you described, you can add the following PHP code snippet to your WordPress plugin or theme’s functions.php file. This code will hide the activity form from all users except admins:

    Copy code
    function hide_activity_form_for_non_admins() {
    if ( ! current_user_can( ‘administrator’ ) ) {
    <style type=”text/css”>
    .activity-form-class {
    display: none;
    add_action( ‘admin_head’, ‘hide_activity_form_for_non_admins’ );

    In this code snippet:

    current_user_can(‘administrator’) checks if the current user is an administrator.
    If the current user is not an administrator, it adds a <style> block to the <head> of the admin pages, setting the CSS property display: none; for the element with the class activity-form-class. Make sure to replace activity-form-class with the actual class name or ID of the activity form element in your HTML markup.
    EXP3RTS ensures you have a backup of your site or are comfortable with making changes to your theme/plugin files before adding this code. Additionally, modify the class name in the code to match the actual class or ID of your activity form for it to work correctly.



    I am building a membersite using buddypress, bbpress and package it with buddyx theme.

    If I visit as non-logged in I can see activites, forums, member etc. Is it possible to somehow block that? Perhaps re-direct to a login/register page as facebook does?

    Best regards,



    I expect this is likely a configuration issue with either our BuddyPress installation, a conflict from another plugin (though it works on staging version), or perhaps a lingering cacheing issue. But looking to find assistance resolving it and willing to consider hired help on this.

    No url to share, as it is a member’s only site (Intranet).

    ### wp-core ###
    version: 6.1.1
    site_language: en_CA
    user_language: en_CA
    timezone: America/Vancouver
    permalink: /%year%/%monthnum%/%day%/%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 0
    default_comment_status: open
    environment_type: production
    user_count: 431
    dotorg_communication: true
    ### wp-paths-sizes ###
    wordpress_path: /home/susyah/public_html
    wordpress_size: 58.81 MB (61669230 bytes)
    uploads_path: /home/susyah/public_html/wp-content/uploads
    uploads_size: 62.25 MB (65272481 bytes)
    themes_path: /home/susyah/public_html/wp-content/themes
    themes_size: 23.15 MB (24279208 bytes)
    plugins_path: /home/susyah/public_html/wp-content/plugins
    plugins_size: 400.27 MB (419712905 bytes)
    database_size: 96.29 MB (100972517 bytes)
    total_size: 640.78 MB (671906341 bytes)
    ### wp-dropins (2) ###
    advanced-cache.php: true
    maintenance.php: true
    ### wp-active-theme ###
    name: Kleo Child (kleo-child)
    version: undefined
    author: SeventhQueen
    parent_theme: Kleo (kleo)
    theme_features: core-block-patterns, widgets-block-editor, editor-style, automatic-feed-links, post-formats, menus, post-thumbnails, html5, featured-content, title-tag, customize-selective-refresh-widgets, responsive-embeds, kleo-facebook-login, kleo-mega-menu, kleo-menu-items, bbpress, woocommerce, buddypress-use-nouveau, widgets
    theme_path: /home/susyah/public_html/wp-content/themes/kleo-child
    auto_update: Disabled
    ### wp-parent-theme ###
    name: Kleo (kleo)
    version: 5.1.2
    author: SeventhQueen
    theme_path: /home/susyah/public_html/wp-content/themes/kleo
    auto_update: Disabled
    ### wp-themes-inactive (1) ###
    Twenty Twenty-Three: version: 1.0, author: the WordPress team, Auto-updates disabled
    ### wp-plugins-active (71) ###
    Admin Menu Editor Pro: version: 2.18.1, author: Janis Elsts, Auto-updates disabled
    AS Admin Customizer: version: 1.0, author: Andolasoft, Auto-updates disabled
    bbPress: version: 2.6.9, author: The bbPress Contributors, Auto-updates disabled
    bbp style pack: version: 5.4.1, author: Robin Wilson, Auto-updates disabled
    Better Notifications for WP: version: 1.9.2, author: Made with Fuel, Auto-updates disabled
    Big File Uploads: version: 2.1.1, author: Infinite Uploads, Auto-updates disabled
    BP Profile Search: version: 5.4.8, author: Andrea Tarantini, Auto-updates disabled
    Brozzme Multiple Admin Emails: version: 1.4, author: Benoti, Auto-updates disabled
    BuddyPress: version: 11.1.0, author: The BuddyPress Community, Auto-updates disabled
    BuddyPress Notifications Widget: version: 1.3.2, author: BuddyDev, Auto-updates disabled
    Classic Editor: version: 1.6.2, author: WordPress Contributors, Auto-updates disabled
    Display Posts: version: 3.0.2, author: Bill Erickson, Auto-updates disabled
    Document Library Pro: version: 1.9.4, author: Barn2 Plugins, Auto-updates disabled
    Duplicate Page: version: 4.5.1, author: mndpsingh287, Auto-updates disabled
    Envato Market: version: 2.0.8, author: Envato, Auto-updates disabled
    Essential Grid: version: 3.0.16, author: ThemePunch, Auto-updates disabled
    FileBird: version: 5.1.4, author: Ninja Team, Auto-updates disabled
    Force Login: version: 5.6.3, author: Kevin Vess, Auto-updates disabled
    GeoDirectory: version: 2.2.25, author: AyeCode - WordPress Business Directory Plugins, Auto-updates disabled
    Image Upload for BBPress: version: 1.1.18, author: Aspen Grove Studios, Auto-updates disabled
    Jetpack: version: 11.9.1, author: Automattic, Auto-updates disabled
    Jetpack Boost: version: 1.7.0, author: Automattic - Jetpack Site Speed team, Auto-updates disabled
    K Elements: version: 5.1.2, author: SeventhQueen, Auto-updates disabled
    K Fonts: version: 1.1.0, author: SeventhQueen, Auto-updates disabled
    Like Button Rating ♥ LikeBtn: version: 2.6.47, author: LikeBtn, Auto-updates disabled
    List Categories: version: 0.4, author: Fernando Briano, Auto-updates disabled
    MainWP Child: version:, author: MainWP, Auto-updates disabled
    Manage Notification E-mails: version: 1.8.4, author: Virgial Berveling, Auto-updates disabled
    Media Sync: version: 1.2.9, author: Erol Živina, Auto-updates disabled
    Meta Box: version: 5.6.17, author:, Auto-updates disabled
    MonsterInsights - Dimensions Addon: version: 2.0.6, author: MonsterInsights Team, Auto-updates disabled
    MonsterInsights - Forms Tracking Addon: version: 2.2.6, author: MonsterInsights Team, Auto-updates disabled
    MonsterInsights - Media Addon: version: 1.0.7, author: MonsterInsights Team, Auto-updates disabled
    MonsterInsights - Page Insights Addon: version: 1.5.2, author: MonsterInsights Team, Auto-updates disabled
    MonsterInsights Pro: version: 8.13.1, author: MonsterInsights, Auto-updates disabled
    Ninja Forms: version: 3.6.20, author: Saturday Drive, Auto-updates disabled
    Page-list: version: 5.3, author: webvitaly, Auto-updates disabled
    Page scroll to id: version: 1.7.7, author: malihu, Auto-updates disabled
    Pages with category and tag: version: 0.9.0, author: YAHMAN, Auto-updates disabled
    Popup Maker: version: 1.18.1, author: Popup Maker, Auto-updates disabled
    Post Slider For Visual Composer: version: 1.1, author: Nasir, Auto-updates disabled
    PublishPress Permissions: version: 3.8.5, author: PublishPress, Auto-updates disabled
    Redirection: version: 5.3.9, author: John Godley, Auto-updates disabled
    rtMedia for WordPress, BuddyPress and bbPress: version: 4.6.13, author: rtCamp, Auto-updates disabled
    SearchWP: version: 4.2.9, author: SearchWP, Auto-updates disabled
    SearchWP bbPress Integration: version: 1.3.1, author: SearchWP, Auto-updates disabled
    SearchWP Custom Results Order: version: 1.3.6, author: SearchWP, Auto-updates disabled
    SearchWP Live Ajax Search: version: 1.7.4, author: SearchWP, LLC, Auto-updates disabled
    SearchWP Shortcodes: version: 1.8.3, author: SearchWP, Auto-updates disabled
    Shortcode in Menus: version: 3.5.1, author: Gagan Deep Singh, Auto-updates disabled
    Site Plugin for author: (undefined), version: (undefined), Auto-updates disabled
    Social Articles: version: 2.9.5, author: Broobe, Auto-updates disabled
    SQ Sidebar Generator: version: 1.2.2, author: SeventhQueen, Auto-updates disabled
    TablePress: version: 2.0.4, author: Tobias Bäthge, Auto-updates disabled
    The Events Calendar: version: 6.0.10, author: The Events Calendar, Auto-updates disabled
    The Events Calendar: Community Events: version: 4.10.5, author: The Events Calendar, Auto-updates disabled
    The Events Calendar: Filter Bar: version: 5.4.3, author: The Events Calendar, Auto-updates disabled
    The Events Calendar PRO: version:, author: The Events Calendar, Auto-updates disabled
    User Role Editor: version: 4.63.3, author: Vladimir Garagulya, Auto-updates disabled
    User Switching: version: 1.7.0, author: John Blackbourn & contributors, Auto-updates disabled
    UsersWP: version:, author: AyeCode Ltd, Auto-updates disabled
    Wbcom Designs - BuddyPress Member Export Import: version: 1.5.0, author: Wbcom Designs, Auto-updates disabled
    When Last Login: version: 1.2.2, author: Yoohoo Plugins, Auto-updates disabled
    WordPress Toolbar Editor: version: 1.4.2, author: Janis Elsts, Auto-updates disabled
    WP Add Mime Types: version: 3.0.3, author: Kimiya Kitani, Auto-updates disabled
    WPBakery Page Builder: version: 6.10.0, author: Michael M -, Auto-updates disabled
    wpDataTables - Tables & Table Charts: version: 2.1.53, author: TMS-Plugins, Auto-updates disabled
    WP Easy Updates: version: 1.1.20, author: AyeCode Ltd, Auto-updates disabled
    WPForms Lite: version:, author: WPForms, Auto-updates disabled
    WP Rocket: version:, author: WP Media, Auto-updates disabled
    WP SMS: version: 6.1.1, author: VeronaLabs, Auto-updates disabled
    ### wp-plugins-inactive (1) ###
    Password Protected Categories: version: 2.1.8, author: Barn2 Plugins, Auto-updates disabled
    ### wp-media ###
    image_editor: WP_Image_Editor_GD
    imagick_module_version: Not available
    imagemagick_version: Not available
    imagick_version: Not available
    file_uploads: File uploads is turned off
    post_max_size: 128M
    upload_max_filesize: 128M
    max_effective_size: 128 MB
    max_file_uploads: 20
    gd_version: 2.3.3
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: 9.25
    ### wp-server ###
    server_architecture: Linux 3.10.0-962.3.2.lve1.5.42.el7.x86_64 x86_64
    httpd_software: Apache
    php_version: 7.4.33 64bit
    php_sapi: litespeed
    max_input_variables: 10000
    time_limit: 360
    memory_limit: 2048M
    max_input_time: 360
    upload_max_filesize: 128M
    php_post_max_size: 128M
    curl_version: 7.84.0 OpenSSL/1.1.1p
    suhosin: false
    imagick_availability: false
    pretty_permalinks: true
    htaccess_extra_rules: true
    ### wp-database ###
    extension: mysqli
    server_version: 5.7.41
    client_version: mysqlnd 7.4.33
    max_allowed_packet: 268435456
    max_connections: 250
    ### wp-constants ###
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/susyah/public_html/wp-content
    WP_PLUGIN_DIR: /home/susyah/public_html/wp-content/plugins
    WP_DEBUG: false
    WP_DEBUG_LOG: true
    SCRIPT_DEBUG: true
    WP_CACHE: true
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    DB_CHARSET: utf8
    DB_COLLATE: undefined
    ### wp-filesystem ###
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    0: Writable
    ### jetpack ###
    site_id: 212215713
    ssl_cert: No
    time_diff: 2
    version_option: 11.9.1:1678828073
    old_version: 11.9:1678301680
    public: Public
    master_user: #1 ConceptDesign
    current_user: #1 ConceptDesign
    tokens_set: Blog User
    blog_token: P8&fk$QOWUjx^E0IRR3qiHSD*VPExwHg
    user_token: bvJ0#WWGEoaVgl@fq*KX$BqCk5YW7Si1
    version: 11.9.1
    jp_plugin_dir: /home/susyah/public_html/wp-content/plugins/jetpack/
    plan: free
    protect_header: {"trusted_header":"REMOTE_ADDR","segments":1,"reverse":false}
    full_sync: {"started":"Tue, 08 Nov 2022 19:26:26 +0000","finished":"Tue, 08 Nov 2022 19:31:21 +0000","progress":{"comments":{"total":"5","sent":5,"finished":true,"last_sent":"3"},"constants":{"finished":true},"functions":{"finished":true},"options":{"finished":true},"posts":{"total":"3647","sent":3647,"finished":true,"last_sent":"2"},"term_relationships":{"total":"3115","sent":3115,"finished":true,"last_sent":{"object_id":"1","term_taxonomy_id":"270"}},"terms":{"total":"398","sent":398,"finished":true,"last_sent":"1"},"themes":{"finished":true},"updates":{"finished":true},"users":{"total":"83","sent":83,"finished":true,"last_sent":"1"}},"config":{"comments":1,"constants":1,"functions":1,"options":1,"posts":1,"term_relationships":1,"terms":1,"themes":1,"updates":1,"users":1}}
    sync_size: undefined
    sync_lag: 0 seconds
    full_sync_size: undefined
    full_sync_lag: 0 seconds
    idc_urls: {"home":"https:\/\/","siteurl":"https:\/\/","WP_HOME":"","WP_SITEURL":""}
    idc_error_option: false
    idc_optin: true
    cxn_tests: All Pass.
    ### buddypress ###
    version: 11.1.0
    active_components: Community Members, Extended Profiles, Account Settings, Friend Connections, Private Messaging, Activity Streams, Notifications, User Groups
    template_pack: BuddyPress Nouveau 11.1.0
    ! hide-loggedout-adminbar: No
    ! bp-disable-account-deletion: No
    ! bp-disable-avatar-uploads: Yes
    ! bp-disable-cover-image-uploads: Yes
    bp-enable-members-invitations: No
    bp-enable-membership-requests: No
    ! bp-disable-profile-sync: Yes
    ! bp_restrict_group_creation: No
    ! bp-disable-group-avatar-uploads: Yes
    ! bp-disable-group-cover-image-uploads: Yes
    ! bp-disable-blogforum-comments: Yes
    _bp_enable_heartbeat_refresh: Yes
    ### redux-framework ###
    version: 4.3.12
    installation: in_plugin
    data directory: /home/susyah/public_html/wp-content/plugins/k-elements/lib/options/
    	Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/112.0
    	Browser: Firefox
    	Version: 112.0
    	Platform: Apple
    ### redux-instance-kleo_kleo_child ###
    opt_name: kleo_kleo_child
    global_variable: false
    dev_mode: false
    ajax_save: false
    page_slug: kleo_options
    page_permissions: manage_options
    menu_type: menu
    page_parent: themes.php
    compiler: false
    output: false
    output_tag: true
    templates_path: undefined
    	Customizer: 4.0.0
    	Import Export: 4.0.0
    	Metaboxes: 4.0.0
    	Options Object: 4.0.0
    	Repeater: 4.3.7
    	Search: 3.4.5
    	Shortcodes: 4.3.5
    ### wpforms ###
    lite: Nov 14, 2022 @ 5:41pm
    upload_dir: Writable
    total_forms: undefined
    total_submissions: undefined
    ### bp-profile-search ###
    version: 5.4.8
    platform: BuddyPress 11.1.0
    theme: Kleo Child 
    index: /plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/index.php
    loop: /plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/members-loop.php
    template0: /themes/kleo/buddypress-nouveau/members/bps-form-legacy.php
    template1: /themes/kleo/buddypress-nouveau/members/bps-form-inline.php
    template2: /themes/kleo/buddypress-nouveau/members/bps-form-with-labels.php
    Anonymous User 18187419

    Hi kp,

    yes I’m with ya on keeping extra plugins to a minimum.

    Code published here…

    …with minor modification (to remove bbpress check) seems to achieve what you want, as per below:

    function ps_guest_redirect() {
         global $bp;
      if ( bp_is_user() ) {
          if(!is_user_logged_in() and !bp_is_register_page() and !bp_is_activation_page()) {
    add_filter( 'get_header','ps_guest_redirect',1);

    Full hijack the authentication flow (Login/Logout/Register/Forgot/Wrong/All Other): End user should never land on a WP login page. I have a mix of BP, bbp, and WP login pages depending on how the user interacts.

    reCAPTCHA during Registration: Should be core. Had to get the plugin from WBCom Designs

    Extended Profile Fields: Should be core. Had to get the plugin from BuddyDev

    User Menu: Username and Avatar. Conditional menu items. I had to use the “User Menus” plugin by Code Atlantic

    Use the username as display name: Had to code this myself.

    Disable Full Name field: Custom code again.

    Set default notification preferences: More code.

    Remove specific accounts from public member list: Really want to hide the admin! More code.

    Remove tabs from user profile: More code.

    Redirect WP Author to BP Profile: teh codez.


    Hi there,

    how can I deactivate the “Public message” button on all profile pages?
    I think those 2 buttons are too confusing for the users.
    The “Private message” button is more then enough, I think


    Thank you for your resonse shane but it does not work.
    I might use the wrong words for the function…

    I use it in the code snippet plugin but no luck.
    Its definitely the get user role part as this part I have seen on many forum pages…

    Is the word:”unset” the right one? Not “hide” or “remove”?


    unfortunately I am a non-coder and want to ask how to hide search fields in a search form based on user role. The plugin that creates the search form is:

    BP Search

    So, for example I want subscribers to only see first search field, contributor can see 2 and so on. What steps would I have to take? Code/function wise?

    After reading some github and other pages I think I need to start with :
    – “get current user role”
    – then do something like “if user is role X”
    – then action hide field #number of field
    – and this for each user role I use

    Am I even close to it?
    I appreciate any input or suggestion 😉


    I install your plugin .
    And every thing is ok.
    But the comment area still appears.
    How can hide all comments from all post.
    For example:

    Kindly help us to remove comments ?


    So I also have youzify plugin enabled for my Buddypress and I have been trying to get the buddypress pages to shift to the left so the content doesnt hide behind my elementor section.

    I have tried editing the css files in youzify but to no avail. Can anyone help me ?


    How can I make my Events, Groups, and Forum pages private to non-logged in users like the other Buddypress pages? I tried 8 plugins in the last four hours and none of them are working for me. Please help!

    My site is at
    I’m running Astra theme
    Wordpress 5.8
    Buddypress 9.1.1 & bbPress 2.6.6

    All updated and current.


    Hello !

    First of all, I apologize if the answer already exists, but I am new to the php language, and I do not understand much …

    I created a website for an organization, and I set up a community space thanks to Buddy Press and Youzify.

    Here is my question: I want to make this space completely closed, and not accessible to non-logged in users. I tried putting this php code in wp-content / plugins / bp-custom.php:

    <? php
    / **
    * Redirect the Buddypress directories to the login page for non logged in users.
    * /
    function yzc_redirect_bp_directories_to_login_page () {

    if (! is_user_logged_in () && (bp_is_groups_directory () || bp_is_members_directory ())) {

    // Get pages Buddypress;
    $ bp_pages = get_option (‘bp-pages’);

    // Get the redirection URL
    $ redirect_url = youzify_get_login_page_url ();

    wp_redirect ($ redirect_url);
    go out();

    add_action (‘template_redirect’, ‘yzc_redirect_bp_directories_to_login_page’);

    Now unconnected users cannot have access to member directory and groups directory, but I would like to block access to all BuddyPress pages (such as member profile pages, activity page. ..) and redirect to the login page.

    Could someone help me complete this piece of code?
    Thank you for your help


    Hey there,

    for a client we set up Learndash and Buddyboss using the Buddyboss Theme. Elementor is also installed as a builder.
    The Course and Lesson Pages however show too many information like “progress” and “members” and more. Can I change the design layout for courses and lessons? And if yes, how?

    The main task would be to hide many elements, not to add more.

    Thanks for your help



    Is there a possibility to hide a widget on the registration form.
    I can hide or show a widget on all pages except the registration page.

    Thanks in advance


    Hello, thanks for replying.
    Yes, I understand. What if I put it public and want to hide anonymous access just specific pages only. So is there any alternative for that? What if I can leave it public but have the right to prevent anonymous access to certain specific pages whom I select.
    Is there any way to do that? I have tried some plugins that can prevent access to specific pages when you add their shortcodes to those pages but they don’t actually do their work.
    The problem with Buddypress and boss platforms is either they are fully public or fully private.

    Even if I put some specific links in the open URLs area of platform settings, but thing is, how many, and how many links I will put in there. That’s kinda messy and inefficient.

    I just want something I can use with these platforms, that let me private specific URLs even when I have set the platform to Public


    Hi, i feel like im doing this properly but i never get the right result. i have a custom meta called “featured” in activity meta. For testing purposes the meta values are 1,2,3,4 my goal is to have an activity loop order activities by the meta value. i’ve checked the documentation and i came up with this.

    get_header(); ?>
    <?php get_template_part('page-parts/general-title-section'); ?>
    <?php get_template_part('page-parts/general-before-wrap');
    $atts =  array(
    			'title'            => 'Latest Activity',// title of the section.
    			'pagination'       => 1,// show or not.
    			'load_more'        => 0,
    			'display_comments' => 'threaded',
    			'include'          => false,     // pass an activity_id or string of IDs comma-separated
    			'exclude'          => false,     // pass an activity_id or string of IDs comma-separated
    			'in'               => false,     // comma-separated list or array of activity IDs among which to search
    			'sort'             => 'DESC',    // sort DESC or ASC
    			'page'             => 1,         // which page to load
    			'per_page'         => 5,         // how many per page.
    			'max'              => false,     // max number to return.
    			'count_total'      => true,
    			// Scope - pre-built activity filters for a user (friends/groups/favorites/mentions).
    			'scope'            => false,
    			// Filtering
    			'user_id'          => false,    // user_id to filter on
    			'object'           => false,    // object to filter on e.g. groups, profile, status, friends
    			'action'           => false,    // action to filter on e.g. activity_update, new_forum_post, profile_updated
    			'primary_id'       => false,    // object ID to filter on e.g. a group_id or forum_id or blog_id etc.
    			'secondary_id'     => false,    // secondary object ID to filter on e.g. a post_id.
    			// Searching
    			'search_terms'     => false,         // specify terms to search on.
    			'use_compat'       => bp_use_theme_compat_with_current_theme(),
    			'allow_posting'    => false,    // experimental, some of the themes may not support it.
    			'container_class'  => 'activity',// default container,
    			'hide_on_activity' => 1,// hide on user and group activity pages.
    			'for'              => '', // 'logged','displayed','author'.
    			'role'             => '', // use one or more role here(e.g administrator,editor etc).
                'for_group'        => '',// group slug.
    		$atts['meta_query']= array(
                                            'key' => 'featured',
                                            'value' => '0',
                                            'type' => 'numeric',
                                            'compare' => '!=',
                                            'meta_type' => 'numeric',
                                    'orderby' => 'meta_value_num',
                                    'meta_key' => 'featured',
                                    'order' => 'DESC'
    			<div id="buddypress">
    		<?php do_action( 'bp_before_activity_loop' ); 
    if ( bp_has_activities( $atts ) ) : ?>
                <div class="<?php echo esc_attr( $atts['container_class'] ); ?> 
                <?php if ( ! $atts['display_comments'] ) : ?> hide-activity-comments<?php endif; ?>">
                    <ul id="activity-stream" class="activity-list item-list">
    					<?php while ( bp_activities() ) : bp_the_activity(); ?>
    						<?php bp_get_template_part( 'buddypress/activity/entry' ); ?>
    					<?php endwhile; ?>
    					<?php if ( $atts['load_more'] && bp_activity_has_more_items() ) : ?>
                            <li class="load-more">
                                <a href="<?php bp_activity_load_more_link() ?>"><?php _e( 'Load More', 'buddypress' ); ?></a>
    					<?php endif; ?>
    				<?php if ( $atts['pagination'] && ! $atts['load_more'] ) : ?>
                        <div class="pagination">
                            <div class="pag-count"><?php bp_activity_pagination_count(); ?></div>
                            <div class="pagination-links"><?php bp_activity_pagination_links(); ?></div>
    				<?php endif; ?>
            <?php else : ?>
                <div id="message" class="info">
                    <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p>
            <?php endif; ?>
    		<?php do_action( 'bp_after_activity_loop' ); ?>
    <?php get_template_part('page-parts/general-after-wrap'); ?>
    <?php get_footer(); ?>

    everything here works except for the order. for some reason it always orders by activity ID. am i missing something here? Thanks in advance im going crazy with this.



    when i integrate buddypress items (such as profile, messages, groups…) in the menu, they are just shown if the visitor is logged in.

    when i integrate a regular page (i created in wordpress) in the menu, it is shown weather the visitor i slogged in or not.

    when i copy the css class of a buddypress menu item (e.g. bp-menu bp-settings-nav) and paste it in the css field of the regular page, this menu item is also just shown to logged in visitors. this is exactly what i need!

    the problem is just, that it kind of confuses the menu. all tems with the same class are spoken at once.

    is it possible to create my own css class of the same kind, that hides the menu items in case the visitor isn’t logged in?!

    thanks a lot!!!



    I am using Menubar plugin to build a customize menu instead of the WordPress menu, because it gives me a perfect horizontal mobile responsive menu.

    Problem is I have logic built in my function theme file that hide the registration menu when users are logged in and the logon menu is hidden when users are logged in.

    I would like the actual navigation code links that BuddyPress uses for the Registration and Login Pages.




    I want to move or hide the Activity component in the detail-user-pages.
    As default, when you open a profile page, you see his activity feed.
    But I want to show up his profile details first, and the activity as a second component.
    How can I change that?



    Is it possible to hide members own pages from other users than admin.

    Example if I have users “user1” and “user2”.

    If User1 is in his own page “”

    User1 can acces to User2 own page by changing only url to “”


    Hello, I searched existing posts but didn’t find this exact question.
    On the members’ page, and on individual profile pages, it shows the time the member was last active. (example ‘active 3 minutes ago’)
    I’d like to hide/turn this off but can’t figure out where or how to do this. I have turned off the activity stream but that didn’t do it.
    Is there a snippet of code I need to change or add to accomplish this?

    I changed the theme to twenty-seventeen and it still shows up.
    Wordpress version 4.9.8
    BuddyPress version 3.2.0

    This will (temporarily) take you directly to the member ( ‘Connect’ ) page.

    Thank you!

    Ritu Singh

    Thank you @venutius for the quick response.

    The code you provided I can use on member list page to hide members with an incomplete profile. I have found a way of calculating member’s profile completeness percentage.

    Will it be good using template_redirect hook to redirect member profile pages with incomplete profile. For eg. to reditect on

    Ritu Singh

    Hi there,

    I am creating a function for my site in which I want to hide member’s profile pages which have not complete their extended profile fields information.
    Is there any way I can achieve this?


    Hello, I have a bit issue on my site: after installing BuddyPress. My WordPress Admin Bar appears to non-logged-in users. I want to disable the admin bar for the non-logged-in users. Is it possible to do that?

    Then, how should I make the BuddyPress’ profile page becomes full-width instead of having a sidebar? And how to hide the header and footer for the BuddyPress pages? Because it’s a blog that has articles too, while the BuddyPress is just for the authors’ profile pages.

    I also want to list the articles under the author’s profile on my site. Could you please tell me how to set it? Is that possible to make it without doing some customization? Thank you, in advance!

Viewing 25 results - 1 through 25 (of 287 total)
Skip to toolbar