I was looking at the way WordPress uses “Or Link to Existing Content” under the link button in the editor and I am wondering if there is any way I can use that code to allow users to select a page to link to when they create a new custom post.
The context I am talking about is that of slides for a slider linking to content within the site.
I’ve run across this before. What I did was use
get_posts()
to return a list of the pages in the site and making the pages options in a drop down menu in a meta box.When you save the post, it will save the page’s ID in the custom post’s post meta.