Skip to:
Content
Pages
Categories
Search
Top
Bottom

Implementing Activity Streams on Home Page

  • Avatar of WPElliott
    WPElliott
    Participant

    @wpelliott

    I am trying to add the Activity Stream to my Home Page at http://soaringcafe.staging.wpengine.com using the code found here: http://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/

    Here is my code:

    
    here 1</br>
    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
        here 2</br>
        <?php while ( bp_activities() ) : bp_the_activity(); ?>
            here 3</br>
            <?php locate_template( array( 'activity/entry.php' ), true, false ); ?>
     
        <?php endwhile; ?>
    <?php endif; ?>
    

    The code logic seems to work but I am not getting any output. (you can see the Here 1, Here 2 … text displaying.

    Thoughts on what I am doing wrong?

    Thank you,
    Bill

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @wpelliott
    Not really sure I am understanding you correctly but if you want the activity stream as your homepage why not just change it in dashboard/settings/reading then select static, and use the dropdown menu to select “Activity.” If your just trying to add activity to whats already there then try this plugin:

    http://buddydev.com/plugins/bp-activity-shortcode/

    Avatar of WPElliott
    WPElliott
    Participant

    @wpelliott

    Thank you for the response. What I want to do is add the activity stream as an element of the home page. It will be easiest to implement with PHP code since the home page is already built with quite a bit of PHP to make it dynamic.

    Ideally, I would still have the top two section and I am looking to replace the “Sailplane Racing News section with the Activity Stream.

    Does that help explain what I want to do?

    Any idea why the code I used is not displaying the Activity Stream?

    Thanks,
    Bill

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.