Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add activity form and loop on my home page


  • szed
    Participant

    @szed

    Hi guys !

    I just want to know how can i add the activity form + loop on my home page ?
    I do not want to use my activity Page as the Home page because i can’t add any content to her.

    Thanks !

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

  • bp-help
    Participant

    @bphelp


    szed
    Participant

    @szed

    I already tried it. But it display only the loop, not the form.
    Also, i use this plugin : https://wordpress.org/plugins/buddypress-activity-plus/


    bp-help
    Participant

    @bphelp

    @szed
    Use the plugin I mentioned above and modify it like like so:
    In line 84-86 in bp-activity-as-shortcode.php you will see:

    
    <?php if($title): ?>
        <h3 class="activity-shortcode-title"><?php echo $title; ?></h3>
    <?php endif;?>
    

    Just above that add this:

    
    <?php if ( is_user_logged_in() ) : ?>
        <?php locate_template( array( 'activity/post-form.php'), true ); ?>
    <?php endif; ?><br />
    

    Use the shortcode in your post or page and you are done and the post form will be included. Make sure you study the parameters you can use with the shortcode on the plugins page!


    szed
    Participant

    @szed

    Great 🙂
    It works fine.

    I also have to modify a little buddypress-activity-plus to use the shortcode with the plugin.

    Thanks !


    namrons
    Participant

    @namrons

    That works perfectly but I would love to know how to get this post form to add the Buddypress Activity Plus media buttons. Any idea?


    CBWill
    Participant

    @cbwill

    @szed

    Any luck with adding the buddypress-activity-plus icons with the buddypress activity shortcode plugin?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add activity form and loop on my home page’ is closed to new replies.
Skip to toolbar