@marcelo2605
8 years, 4 months ago
@shanebp Sorry. I was looking in Personal activity sub tab, not Friends activity sub tab.
All working.
I try, with no result.
Found a solution: replace bp_init by init.
Thanks for the help. I will analyse my code.
Thanks for the explanation.
I think is better to share my members/single/home.php. Here is the link:
https://gist.github.com/marcelo2605/a0d7cb73902c22af4ca01516269f0cf8
The action is in line 129.
I want to put these buttons in another place of the layout.
That’s why I add this action to home.php file.
What is the correct way to this?
I removed this line: do_action( 'bp_member_header_actions' ); from members/single/cover-image-header.php and add it in members/single/home.php file.
do_action( 'bp_member_header_actions' );
8 years, 6 months ago
Thanks!
But there is still a problem: in bp-custom.php, count_user_posts is not working with CPTs. And I’m using latest version of WP. You known why?
count_user_posts