Skip to:
Content
Pages
Categories
Search
Top
Bottom

Request: Topic title link to latest post

  • I was thinking a plugin that when you click on the topic title in the “Latest Discusison” section, it takes you to the last post, or the last unread post by you (which I think would require cookies, I don’t know much about that). I’m sure you have seen this on forums like IPB or phpBB, you click on the topic title, and it takes you to the last unread post. This would be good for threads which have more than one page, so that once you go to the thread, you then won’t have to navigate to the correct page.

Viewing 6 replies - 1 through 6 (of 6 total)

  • thomasklaiber
    Member

    @thomasklaiber

    I think there is no plugin needed for this. It only requires a small template change in front-page.php.

    Just replace in line 37:

    topic_link();

    with

    echo get_topic_last_post_link($topic->topic_id);

    … I think it should work.

    thanks :)


    chrishajer
    Participant

    @chrishajer

    Works for me too. Now to do something like “WP Since Last Visit” from Alex King.

    Also, I made the same change in forum.php on lines 16 and 25 for consistency.

    edit: Oops, just looked through the files and that need to be changed in lots of places. I lost track already…


    mriannnnnn
    Member

    @mriannnnnn

    ok you have to edit these pages:

    front-page.php

    forum.php

    tag-single.php

    just three files not much.

    edit those pages with what mriannnnn?

    By the way, chrishajer, I only did this on the front page by adding an image that they can click on to take them to the latest post, or if they dont want to go to the latest post, click on the topic title. You can see it on my site, it’s the clipboard image that takes to the latest post.


    Arlo
    Member

    @arlo

    This trick doesn’t work if the latest post is on page 2+…ideas how to get around that?

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.