I am using a template tag to pull in a list of recent forum posts into a page and was having some issues before, (in another thread) which is solved.
https://simple-press.com/support-forum/sp5-plugin-topics/problem-with-post-edit-buttonow-to-remove-the-word-topic-in-newest-topics-tag-php-raw-code/page-2/#p123105
This is a separate and unique issue so I thought it best to start another thread in case anyone else is having this new issue.
The issue I am having now is that the template tag now only shows up to users who are logged into the site. For guests, the template tag doesn’t pull in any topic headlines at all.
I checked the permission sets and guests “Can view a list of forums and list of topics only” but can’t do anything else and are hit with the page redirect (just like how you have it here on this Simple-Press help forum). This worked fine when I was using the recent posts widget, but it seems that the recent posts template tags don’t follow theses same permissions. It just doesn’t show the output of the template tag at all. It’s blank.
To test this, I changed the permission set for guests to allow everything and the template tag worked and pulled in the topic headlines like it is supposed to be doing. (But the forum and everything is now open, which I don’t want it to be).
I switched the permissions on guests back to “Can view a list of forums and list of topics only” and the recent posts tag did it again and everything disappeared. It’s not showing the topic headlines at all, even though I am allowing guests to view these.
(I cleared the cache in both the browser and the host each time and tested it in several browsers and had the same result.)
The template tags should follow the user permissions granted and show what is allowed to be shown to each user group. The recent posts widget does this fine, but for some reason the template tags on their own don’t follow the permission sets.
How do I fix this so I can show a list of topic headlines to guests (and when they click on a link get redirected to a page)?