-
Fábio Roque replied to the topic Enable shortcode in BuddyPress activity feed in the forum Installing BuddyPress 2 years, 7 months ago
when I developed this, I had problems with css styles, js files… maybe is something like that, I don’t know, I never used the H5P.
I used this code to insert my own shortcodes!
I would like to help you, but without testing is difficult. Try search in H5P documentation!
-
Fábio Roque replied to the topic Enable shortcode in BuddyPress activity feed in the forum Installing BuddyPress 2 years, 7 months ago
Hi @futureyoon
Try this
/**
* Render shortcodes on feed posts
*/
function enable_shortcode_bp_activity($content) {
$content = stripslashes($content);
return do_shortcode($content);
}add_filter('bp_get_activity_content_body', 'enable_shortcode_bp_activity', 0);
-
Fábio Roque started the topic Hide members count from groups loop in the forum How-to & Troubleshooting 3 years, 1 month ago
I’m looking for a hook to hide the members & members count from groups-loop.php.
Any sugestion ? thnks
-
Fábio Roque replied to the topic Enable shortcode in BuddyPress activity feed in the forum Installing BuddyPress 3 years, 4 months ago
Hi, I already find a solution.
/**
* Enable shortcode rendering in BuddyPress activity.
*/
add_filter( ‘bp_get_activity_content_body’, function ( $content ) {echo do_shortcode( $content );
}, 0 );
-
Fábio Roque replied to the topic Enable shortcode in BuddyPress activity feed in the forum Installing BuddyPress 3 years, 4 months ago
if I go to the entry template and put <?php echo do_shortcode([shortcode)] ?> it Works, but if I insert a shortcode directly in the feed doesn’t work
-
Fábio Roque replied to the topic Enable shortcode in BuddyPress activity feed in the forum Installing BuddyPress 3 years, 4 months ago
I already have the shortcode created, but when I put the shortcode in activity feed he doesn’t work.
I want to do this: https://buddypress.org/support/topic/enable-shortcodes-in-activity-screen-of-buddypress/ but in the new version of buddypress.
-
Fábio Roque replied to the topic Enable shortcode in BuddyPress activity feed in the forum Installing BuddyPress 3 years, 4 months ago
Sorry mate but I can’t solved this problem.
`
function enable_shortcodes_in_feed()
{add_filter( ‘ ??? ‘, ‘do_shortcode’, 1);
}
add_action( ‘bp_activity_entry_content’, enable_shortcodes_in_feed’ );`
And I tried add the do_shortcode in the template but doesn’t works too
-
Fábio Roque replied to the topic Enable shortcode in BuddyPress activity feed in the forum Installing BuddyPress 3 years, 5 months ago
I think I wasn’t clear in what I’m looking for.
I want to include a contactform7 shortcode in a activity feed
-
Fábio Roque replied to the topic Enable shortcode in BuddyPress activity feed in the forum Installing BuddyPress 3 years, 5 months ago
I don’t have another option to enable the shortcodes in activity posts ?
I found this:
but doesn’t work
-
Fábio Roque started the topic Enable shortcode in BuddyPress activity feed in the forum Installing BuddyPress 3 years, 5 months ago
Hi everyone, I already try some solutions like
add_filter( ‘bp_nouveau_activity_content’, ‘do_shortcode’,);
or
function test() {
add_filter( ‘bp_nouveau_activity_content’, ‘do_shortcode’, 1 );
}
add_action(‘bp_init’, ‘test’);But I can’t solve this problem, somebody knows how to enable the shortcodes in activity feed? thnks
@fabioroque92
Active 2 years, 7 months ago