NOTE: this is not tested so please try it on a development site first, do not put it on your live site.
Try this …
add_filter(
'wpstory_bp_profile_displaying_hook',
function () {
// Default: bp_before_member_home_content
return 'bp_profile_header_meta';
}
);
If it doesn’t work, then point me at your Stories plugin please.
It didn’t change the location of the stories it stayed above the header. Here is the documentation for the filter.
Ok that’s a premium plugin so I can not install and test.
Unless there’s a free version?
In any case, you have paid for that so the developer should really supply you with the exact code snippet you need and not just point you in the right direction.
So I can not help really.
But you might try this… ( again, test first on staging site ) …but this could end up displaying stories both above AND below the cover image ..it’s just a guess
add_filter(
'wpstory_bp_profile_displaying_hook',
function () {
// Default: bp_before_member_home_content
return false;
}
);
add_action( 'bp_profile_header_meta' ,
function () {
echo do_shortcode( '[wpstory-user-single-stories]' );
}
);
Hey thanks so much appreciate the help. I will let you know. Does this go in the functions files right? I ask because there is a header php file in my child theme as well. Also wondered about the BP custom file.
Yes it goes in functions.php or you can use a plugin like Code Snippets to add it.
That worked perfectly.Now I just need to ask them about removing the stuff above the header. Thanks again.
My final guess …
add_filter( 'wpstory_bp_profile_displaying_hook' , '__return_false' );
add_action( 'bp_profile_header_meta' ,
function () {
echo do_shortcode( '[wpstory-user-single-stories]' );
}
);
And my final final guess …
add_filter( 'wpstory_bp_profile_displaying_hook' , 'change_stories_display' );
function change_stories_display( $location ) {
$location = 'bp_profile_header_meta';
return $location;
}
Thanks for all your help still working on the process of getting the display above the header removed but I haven’t had time to test or reach out to the plug-in developer.
Let’s me know if my “final final” guess worked. I had a look at how add_filter works in wordpress and I can’t imagine any other method being correct.
I finally got around to testing and it still displays above the profile header. Is there a particular way the last code snippet should be combined with the last one?
Hi, the “final final” snippet should be used alone, not combined. All other snippets should be deleted. If it’s not working then I’m stumped. I’d be interested in seeing the correct solution once the dev. has informed you.