Support Forum

How to NOT show 'unread posts' list for new visitors

PM Patricia Miller
Patricia Miller
Member

I’ve combed through this page for clues, but still not understanding:

https://simple-press.com/documentation/codex/api/template-functions-and-the-api/display-template-functions/common-view/sp_recentpostlist/

For a brand new visitor, ALL posts would be unread, and I don’t want to show that view I’d rather show the normal group view of the forums list.

I’m using a Child theme based on the css-only theme, and understand that I need to modify the [Child Theme’s] spGroupView.php file, but not sure what lines to modify or how.

Any help would be most appreciated – thanks!

3 Answers

New Answer

IK Ike
Ike
Member

Hey Patricia,

A nice and easy one, especially since you’re already running a child theme!

So yes, you have the right template and you’re looking at the right function, all you need to do is simply comment it out using a hash (#) before the function so it appears:

#sp_RecentPostList('show=10', __sp('Unread and recently updated topics'));

Commenting out is usually better than deleting as it’s easier to put back in should you choose to later.

Hope that helps!

PM Patricia Miller
Patricia Miller
Member

Yaay! Worked perfectly!  I had a feeling it was something simple like that. 🙂

MANY thanks for your quick and helpful reply!