Gather requirements, design one and build it. Or use existing software. I don't really see the question in this.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
I actually mean the approach to achieve this.
Dose it mean that I have to create a database and use it store and retrieve all the posts by my users all is there any other easier way out?
If you want to show a post to a user any time they click on the link for that post, then obviously you would have to store those posts somewhere.
So far your post is like "How do I build an office building?" You just can't answer that in two paragraphs or less. And you'll find that people aren't interested in trying to answer it either. The best you're going to get is what Wouter Oet already posted.