I have made a meta_box for my custom post an in there I whant the user to choose a page or a post that the custom post will link to.
But I have a problem. this is the function that puts all permalink i a select. But when I do this function in my meta box kode the saved excerpt disapper. I have tried it and I know it is something wrong with the while loop but what?