Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity in my home.php


  • joeynimu
    Participant

    @joeynimu

    Hi,

    I am developing this website and my reading settings for front page i am using my latest posts. My home page is the home.php file in my theme where i have my custom posts loop but i want to have what we have on the activity page to be right after my posts loop. How do i achieve this?

    I have tried using the bb loop below but it doesn’t display anything.

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

    Please give me a kick start, many thanks.

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

  • Henry Wright
    Moderator

    @henrywright

    Does front-page.php exist in your theme’s folder? If so, then that’ll override whatever you have in home.php.


    joeynimu
    Participant

    @joeynimu

    Hi Henry,

    The problem is not an overwrite issue. My problem is getting the activity to be showed in my home.php file. What code should i use to query for this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Activity in my home.php’ is closed to new replies.
Skip to toolbar