Mentions autosuggest not working on group home page
-
Using WordPress 4.0 and Buddypress 2.1.1 and autosuggest is not coming up for the “what’s new” box on group home page.
It seems that the group home page is failing the test done by bp_activity_maybe_load_mentions_scripts(). Not sure if this is something specific to my site, but it doesn’t appear to be as the page fails on both the first and third groups of logic tests in ( bp_is_activity_component() || bp_is_blog_page() && is_singular() && comments_open() || is_admin() );
I’ve fixed it using the following code in my bp_custom.php file, but I’m wondering if this is intended functionality, site-specific or a bug?
function my_load_mentions_on_group_home_page( $retval ) { if( bp_is_group_home() ) $retval = true; return $retval; } add_filter( "bp_activity_maybe_load_mentions_scripts", "my_load_mentions_on_group_home_page" );
- The topic ‘Mentions autosuggest not working on group home page’ is closed to new replies.