Directing user-generated content to different pages

Thank you, now is there a way to display or hide certain elements depending on if there is an input in the database for that category?