Helper function to check for shortcodes in the post content.