It's simple but probably not simple in the way you were hoping. You need three database tables - a table to contain the items you want to tag, a table to contain the tags consisting of their tag names, and a relational table to relate the items to tags. Then you need a way of tagging the items, i.e. adding an entry into the relational table to connect an item to a tag. Then you need to run a database query to pull out the items that relate to the tag you want results for. Then some code to display those. So you're really talking about coding some sort of CMS.
Or you could just stick with Wordpress or some other off the shelf CMS.
|