ok, nevermind, get_cwd is working correctly, I'm just retarded 😉
I've found an example of what I'm trying to do:
Red Envelope
see the little links that say "home occassion summer sale"?
I'd like to create a small script that will generate that information automatically on each page. Would I be better off trying that with javascript?