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?
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.