I believe you want something like
!/wordpress
/wordpress/*
!/wordpress/..../
But, my preferred solution is to add files I want to track. I would do in ignore (either .git/info/exclude for just you or .gitignore for everyone):
/wordpress/*
And then run
git add -N path/to/files/to/track
Also, check out this Git Tutorial to know more.