Removes demo files
Checks if related_posts() exists