Reputation: 1497
I am creating a homepage with blocks of content that would be more easily handled by grabbing content from multiple pages for better organization on the backend. The problem is that I do not want to create actual pages, just use the content (similar to Private page stutus, but visible to everyone).
Is there a way to setup a custom status or post type so that I can create content nodes that can be used to aggregate on the homepage? (Basically like a page as a large widget)
Upvotes: 0
Views: 121
Reputation: 3035
If you just need content blocks, why not add an options page and use the_editor to handle the html content. You can then retrieve the content by grabbing the options, without creating additional single, archive or feed content.
If you're not familiar with the settings API, Otto did a good article on it.
Upvotes: 1
Reputation: 52372
Yes, create a custom post type.
http://codex.wordpress.org/Post_Types#Custom_Types
Custom post types can have their own properties, their own UI for editing in the admin side, yet can be retrieved with the same functions you use to retrieve normal posts and pages, so that you can easily insert them into your theme.
Upvotes: 1