[wp-hackers] URL question
scribu at gmail.com
Sat Jan 2 14:20:00 UTC 2010
For each attachment, you could create a new post automatically and then make
it the parent of said attachment.
On Sat, Jan 2, 2010 at 4:15 PM, Dan Phiffer <dan at phiffer.org> wrote:
> Hmm never mind all that. I think I've changed my mind about how I'll make
> this work. Image attachments wouldn't be very scalable (mainly due to the
> huge, non-paginated list of items). I probably can't get around creating a
> post for each entry, although there was a certain appeal to batch uploading
> 80 images and having it Just Work.
> On Jan 1, 2010, at 3:52 PM, Dan Phiffer wrote:
> > Also, happy new year!
> > -Dan
> > On Jan 1, 2010, at 12:54 PM, Dan Phiffer <dan at phiffer.org> wrote:
> >> Hi all,
> >> I just relaunched my personal website on WordPress and ran into an odd
> URL conflict. Here's my desired setup:
> >> 1. Posts get the URL structure: /category/slug
> >> 2. Photos are attached to a single Page with a custom template
> >> 3. Photo details are linked from /photos/ to /photos/attachment
> >> This mostly works, but the photo detail URLs have an extra "/attachment"
> part. So for instance I'd like
> http://phiffer.org/photos/attachment/2010-01-01/ to instead be available
> at: http://phiffer.org/photos/2010-01-01/
> >> This is possible with some mod_rewrite trickery, but it only seems to
> work for attachment slugs that don't include "2010" (because, I think, it
> conflicts with an archive path). So http://phiffer.org/photos/2009-12-27/works, but the one for today (linked above) doesn't work.
> >> Is what I want feasible? Do I need to do some wp_rewrite stuff?
> >> TIA,
> >> -Dan
> >> _______________________________________________
> >> wp-hackers mailing list
> >> wp-hackers at lists.automattic.com
> >> http://lists.automattic.com/mailman/listinfo/wp-hackers
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers