Advertisement
dprophit

bbpress display last 5 forum topics

Jun 1st, 2013
82,173
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None
  1. <?php
  2. $show_sep = false;
  3.  
  4. if ( 'forum' ==  bbp_get_forum_last_active_id() ) {
  5. $breadcrumbs = '<a href="' . bbp_get_forum_permalink( $parent->ID ) . '">' . bbp_get_forum_title( $parent->ID ) . '</a>';
  6. }
  7.  
  8. if ( $breadcrumbs ) {
  9. ?>
  10. <ul class="square-bullets">
  11. <?php
  12. printf( __( '<li>Posted in %2$s ' ),'', $breadcrumbs);
  13. $show_sep = true;
  14. echo '</li>';
  15. echo '</ul>';
  16. }
  17. ?>
Advertisement
RAW Paste Data Copied
Advertisement