Fix quoting for variable expansion
Fix post ID, enforce count option
Clean up rendered HTML