[wp-trac] [WordPress Trac] #16415: Don't require CPTs to have archives in order to have feeds
WordPress Trac
wp-trac at lists.automattic.com
Mon Jan 31 14:10:27 UTC 2011
#16415: Don't require CPTs to have archives in order to have feeds
-----------------------------------+-----------------------------
Reporter: aaroncampbell | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Post Types | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion |
-----------------------------------+-----------------------------
Comment (by aaroncampbell):
@[comment:1 scribu]:
Sorry, I explained it all to Nacin but didn't get it into the ticket
because it seemed long winded. The quick example is my beer review site.
It has two CPTs...beer and beer-review. I'd like to have a feed for beer-
review. Something that other sites could consume and show the kind of
activity on my site. However, having an archive page of reviews for all
different beer reviews really doesn't make any sense because they're just
too random (however, I do have an archive page for beers).
The quick solution for me is to turn on archives for both and redirect the
beer-review archives to the beer archives, but the correct solution is to
allow feeds without archives.
The other oddity is the slugs. If the feed is at `/beer-review/feed/` and
you remove `feed/` you'll get a 404 if there's no archive. However, if
there's no archive the same is true of each review which would look like
`/beer-review/my-beer-review-slug/`
@[comment:2 markmcwilliams]: I tested it on trunk at the #wcphx dev day
and it worked without `has_archive`. If you don't specify a `has_archive`
slug it uses the rewrite slug.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16415#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list