plug dynamic search into wp