Changed the use of the_ID() to get_the_ID() for use as a parameter to other methods.