Skip to:
Content
Pages
Categories
Search
Top
Bottom

Actvity feed in custom placement


  • Beardy
    Participant

    @ryanbeardy

    Hi

    Is it possible to add the Activity Feed in a custom location?

    I find the Activity page quite restrictive and would like to add a feed to a custom page via a shortcode.

    I can gt the feed to load like this – however it seems to be missing styling and when clicking comment it redirects me.

    Is there a better way to do this?

    
    function custom_shortcode_activityfeed() {
        ob_start();
        if ( function_exists( 'bp_has_activities' ) ) {
            bp_get_template_part( 'activity/activity-loop' );
        }
        $output .= ob_get_clean();
        return $output;
    }
    add_shortcode( 'custom_activityfeed', 'custom_shortcode_activityfeed' );
    
Viewing 3 replies - 1 through 3 (of 3 total)

  • Munazza Zaidi
    Participant

    @mzaidi604

    Hi Ryan,

    You can use Shortcodes for BuddyPress plugin to display BuddyPress activities on any page. You can find it here: https://wbcomdesigns.com/downloads/shortcodes-for-buddypress/

    It also provides shortcodes for members and groups, allowing you to display member and group directories on any custom page.

    Please let me know if you have any further questions!


    Beardy
    Participant

    @ryanbeardy

    Thanks Munazza

    I tried that plugin but it doesn’t work as well as I hoped.

    The generated code doesnt allow me to hook into bp_before_activity_loop as it does on default buddypress.


    Youzify
    Participant

    @kainelabsteam

    Buddypress does not provide a shortcode for the activity stream. There are only 2 ways to achieve this:

    1. You can create your Activity Feed shortcode which is it will require some custom PHP works

    2. Find a BuddyPress plugin that provides a BuddyPress Activity Feed shortcode.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar