Added custom post type loop compatibility

Fixed definitiions loop override by declaring global $defs variable and appending to in foreach loop, set definitioner wrappers in the new $defintioner variable in the add_defintiioner function. Allows defintions to be used for custom post type loops.