normally i do this with an option page. but i would prefer to set that post meta directly in the post too. i would do it like you but this makes me worry because of a lot of code for such a tiny thing. hmm. another approach might be to create an option field in the database which saves the post id. and toggle that id inside of each post.