Adds attachment elseif case to single.php