Improved post_type code on the relationship items

Signed-off-by: Elliot Condon <e@elliotcondon.com>