fixed if statement that was duplicating titles on regular post types. silly me.