Pop this in a new .php file in your plugin directory.
<?php
/*
Plugin Name: Page »
Plugin URI:
Description: Adds » to the end of topic titles, linking to latest post.
Author: fel64
Version: 0.7
Author URI: http://www.loinhead.net/
*/
if (!function_exists('is_tags')) {
function is_tags()
{
return is_tag();
}
}
if (is_front() || is_forum() || is_tags()) {
add_filter('topic_title', 'fel_addlatestlink', 101);
}
function fel_addlatestlink($title)
{
global $topic;
$felgtlpl = get_topic_last_post_link($topic->topic_id);
$title = $title . '</a> <a href="' . $felgtlpl . '"> » ';
return $title;
}
?>
fel64,
I didn’t compare this to the one you posted a few months ago. But it still doesn’t work for me. Clicking the >> next to the thread just gets me to a page that does not show any posts. I have to click the “Go to last post” link on that page to get there.
The link for >> is this, for example:
http://www.citizenkeith.com/forums/topic.php?id=65&page=200&replies=996#post-29898
The link for the actual last post is this:
http://www.citizenkeith.com/forums/topic.php?id=65&page=34&replies=996#post-29898
So it looks as though pages are messed up. I’ll try turning off every single plugin again and will report back with info.
Ok, I switched back to Kakumei and turned off all plugins except this one. Works fine now.
I’ll figure out which one is causing the problem and report it to the author, as well as here in this thread.
I found the culprit: the Front Page Topics plugin.
https://bbpress.org/plugins/topic/3?replies=15