Flatten wordpress output