Here the word "This" refers to what Yahweh says next.
Here the word "their" refers to "the posts of the court."