Jump to content
Sign in to follow this  
jankowalski

forum template

Recommended Posts

jankowalski

tried to hook this into my functions.php 

// ! // Add Recent Topics to BBPress  
function recent_bbpress_topics() { { ?>
<!-- html -->
	<h4>Recent Topics</h4>			
	<?php
	if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 10 ) ) )
		bbp_get_template_part( 'bbpress/loop', 'topics' );
	?>
<!-- end -->
<?php }} 
// Hook into action
add_action('bbp_template_after_forums_loop','recent_bbpress_topics');

but i get error, what is wrong that is not working with pagelines framework, do i have to modify it somehow? i got it from http://bp-tricks.com/snippets/add-recent-topics-to-your-bbpress-forums-homepage/

Share this post


Link to post
Share on other sites
batman

Hi

I'm a newbie, but you can try with, with this don´t get error

;)

I do not know if this work

 

 

function recent_bbpress_topics() { { ?>
<!-- html -->
<h4>Recent Topics</h4>
<?php
if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 10 ) ) )
bbp_get_template_part( 'bbpress/loop', 'topics' );
?>
<!-- end -->
<?php }} 
 
add_action ('bbp_template_after_forums_loop','recent_bbpress_topics');
  • Like 1

Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
batman

No problem, happy to help!

  • Like 1

Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×