I am creating a custom theme and need to integrate BuddyPress. I am working locally.
I have a custom template and created the activity loop. This works great. Now I want to show the post-form at the top of my activity loop. Which I have done by calling in activity/post-form.php. However, you type in the textarea box and hit post comment and nothing happens. Any ideas?
I know the activity feed is working on /activity so everything is setup correctly with my theme. I just want to show it in a column on my new template page.
obidos
@obidos
8 years, 6 months ago
Hi there,
I am creating a custom theme and need to integrate BuddyPress. I am working locally.
I have a custom template and created the activity loop. This works great. Now I want to show the post-form at the top of my activity loop. Which I have done by calling in activity/post-form.php. However, you type in the textarea box and hit post comment and nothing happens. Any ideas?
I know the activity feed is working on /activity so everything is setup correctly with my theme. I just want to show it in a column on my new template page.
<div id="buddypress">
<div class="activity-comment">
<?php locate_template( array( 'buddypress/activity/post-form.php' ), true ); ?>
</div>
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&action=activity_update' ) ) : ?>
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<?php locate_template( array( 'buddypress/activity/entry.php' ), true, false ); ?>
<?php endwhile; ?>
<?php endif; ?>
</div>