Recent topics widget – how to add forum url to title
Title says it all really. I am trying to customise the recent topics widget; using it to display topics from a specific forum; and I would like the title to link to the forum from which the topics are from.
I have registered a sidebar for this in my functions.php file and I’ve tried the following code, but it doesnt work as its not adding the URL into the title:
register_sidebar( array( 'id' => 'forumcontent', 'name' => __( 'Forum Home Content - Colleges', 'textdomain' ), 'description' => __( 'A short description of the sidebar.', 'textdomain' ), 'before_widget' => '<div id="%1$s" class="widget-topic-list %2$s">', 'after_widget' => '</div>', 'before_title' => '' . apply_filters( 'bbp_get_forum_permalink', get_permalink( $forum_id ) ) . '<h3 class="widget-title">', 'after_title' => '</h3><a/> <br class="clear"/>' ) );
I am trying to create something similar to this: http://postimg.org/image/55qwbgoe3/
I am currently editing the the bbpress/includes/common/widgets.php file directly which I know is a BIG NO NO! and I should create a custom widget for this, but I am not really sure how to!
I am currently using WordPress v3.6 and Bbpress v2.5.3
- You must be logged in to reply to this topic.