Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress 12.5.0 Maintenance Release

Viewing 2 replies - 1 through 2 (of 2 total)

  • hossin0241
    Participant

    @hossin0241

    Hello
    Good time
    in this version of BuddyPress, I want to limit the default pages such as the user directory with “Restrick Content Pro” plugin.
    In the new version of BuddyPress, there is no user directory and other pages in the “page” section on WordPress Dashboard, so that I can not limit them with the mentioned plugin.

    Now how should I do this?


    Koka boka
    Participant

    @koka777

    Hello, I’m sorry that it’s a little off topic, but I don’t know where to dig anymore, I’m trying to attach hashtags to the activity feed. I created a separate page and am trying to call the template entry.php its download is not displayed correctly!
    For some reason, the styles are not loaded correctly. I have added screenshots.
    https://prnt.sc/jEms0Zul8TVY
    https://prnt.sc/Roy5fmcWPZCV
    And here is the page code itself:

    <?php
    /*
    Template Name: Hashtag Page
    */
    
    get_header(); ?>
    
    <div class="activity" data-bp-single="<?php echo esc_attr( bp_current_action() ); ?>">
    
        <?php
        if ( isset( $_GET['tag'] ) ) {
            $hashtag = sanitize_text_field( $_GET['tag'] );
            echo '<h1>Hashtag : #' . esc_html( $hashtag ) . '</h1>';
    
            // Використання BP_Loop для отримання активностСй
            if ( bp_has_activities( array( 'search_terms' => '#' . $hashtag ) ) ) : ?>
                <ul id="activity-stream" class="activity-list item-list bp-list" data-bp-list="activity">
                    <?php while ( bp_activities() ) : bp_the_activity(); ?>
                        <?php bp_get_template_part( 'activity/entry' ); ?>
                    <?php endwhile; ?>
                </ul>
            <?php else : ?>
                <p>Hashtag.</p>
            <?php endif;
        } else {
            echo '<p>Hashtag.</p>';
        }
        ?>
    
    </div><!-- #primary -->
    
    <?php
    get_footer();
    ?>

    I will be glad for any suggestion.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar