I am trying to setup a custom post type plugin in wordpress that allows for selecting a page that will produce the posts list in the same fashion as setting the "Posts page" setting so that when the url of the page is accessed it produces the custom post types archive page instead of the page content.
I have option for selecting the page to use setup and it uses the pages slug as the rewrite slug for the custom post type, I just can't figure out how to get it to display the archive instead of the page content.