Adding class="customclass" after post_class() inserts a _second_ class-attribute, which will neither work as expected nor validate. For multiple classes, an array with the classes needs to be constructed. Solution added.