Notifications
Clear all

How to modify the Recent Posts widget? Go to unread vs most recent.

1 Posts
1 Users
0 Reactions
16 Views
Posts: 134
Topic starter
(@cotner)
Estimable Member
Joined: 3 years ago

I like how the Recent Posts widget works. It is clean and shows the most recent post and topic, but it also let's users know that there is new posts in a particular topic they are interested in.

Right now, if a user clicks the link it will bring them to the most current post. But I am getting request after request to have it link to the first UNREAD post in that topic instead. This way they know where they left off.

Yes the /forum/recent/ page does what people want, but they love the small widget that can be used on any location/page on the site.

I know a tiny bit about that kind of coding, but not enough to make this kind of change. Is it even possible? If I had the correct code, could I put a modified /widgets/RecentPosts.php file in my theme folder to make this work without modifying the original file?

I have made layout tweaks in the past by putting files in my theme folder. Like child_theme/wpforo/layouts/2 and whatnot. Is this doable for this particular widget? If so, what code modifications do I need?