query_posts topic content – private forum
I’m building a forum based website at the moment. You can see the progress here (it’s no where near finished yet): http://pkuconnect.wp-dev.com.au/
At the bottom of the home page, there are 3 columns: News & Events, Forum Activity, Latest Recipes. Forum Activity and Latest Recipes are both private forums (News & Events are just posts).
Now, when you aren’t logged in, the forum and recipes boxes on the home page are empty. However, when you are logged in, they show the 4 latest topics titles with links to the topics for more information – similar to how the latest news and events is working.
What I want to do is show the latest 4 topic titles in each forum to EVERYONE and not just logged in users so that non-logged in users aren’t shown blank boxes. The aim is to prompt the user to log in once they click on one of the links to view more. I can do this by editing the 404.php template. However, for the life of me, I can’t figure out how to feed topic titles and links through to the home page from private forums to non-logged in users.
Is there a way to query_posts from private forums for non-logged in users?
You must be logged in to reply to this topic.