Updated get_post_permalink() to get_permalink() and stopped the_title_attribute() from echoing by default