Fix post filtering via dropdown - issue #838

A bit hacky, but at least it works again. Would be nice to find a more elegant solution without going to custom queries, but I doubt that's possible.