I have a client who’s site will be making heavy use of custom post types to configure their site. But I’m between a rock and a hard place for their requested home page.
In reality, the home page will be a stack of specific “pages” within WordPress. Basically, there will be pages for: Intro, Blog, About Us, Portfolio, and Contact Us. They’ll all be stacked on top of one another so you can scroll from one page to another.
My first instinct was to just use a page (called Home) and embed a shortcode that accepts page slugs and outputs the proper order (i.e. [pageOrder]intro, blog, about-us, portfolio, contact-us[/pageOrder]
). The page would use a custom page template to lay things out, control the loop, and add navigation to the left side of the page. But that all seems klunky.
My ideal solution would be to create a custom post type (called Stack) that allows the end user to position the pages with drag-drop and have the CPT take care of layout and navigation and such.
The problem with my ideal solution is settings. WordPress allows you to select a page for the default home page of the site. But it’s tied to a post type of page, and I’m not sure where to hook in to modify that so that users could also select a Stack as the default home page.
So, where do I hook in to in order to add a CPT to the dropdown of available pages for the default home page?