[wp-trac] [WordPress Trac] #19958: Allow custom post types as "home" and get_posts() to return results for more than one post type
WordPress Trac
noreply at wordpress.org
Thu Jan 14 16:43:20 UTC 2016
#19958: Allow custom post types as "home" and get_posts() to return results for
more than one post type
-------------------------------------------------+-------------------------
Reporter: sooskriszta | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Posts, Post Types | Review
Severity: normal | Version: 3.3.1
Keywords: has-patch needs-testing needs-codex | Resolution:
needs-refresh | Focuses:
| administration
-------------------------------------------------+-------------------------
Comment (by swissspidy):
I think this would be a very interesting enhancement and would make the
front page setting much more flexible.
It should be possible to either set a specific post (no matter what post
type, think `public => true`) or a post type archive (think`has_archive =>
true`) as the front page. I don't think a new `show_in_home_page_list`
argument is really needed. A filter should suffice.
Perhaps we need to look at the UI first? Related: #16379
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19958#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list