You can try:
-C, --directory DIR change to directory DIR
and $(dirname "$x") for file directory
$(dirname "$x")
for x in in /home/davidwright/attachments/*/*.tardo echo "extracting $x" tar -xvf "$x" -C "$(dirname "$x")"done