WordPress.org

Ready to get started?Download WordPress

Ideas

taxonomy archive template

  1. AliMH
    Member

    12345

    hey, i think wordpress need an archive page for taxonomies.
    let me define my idea:
    we have taxonomy Genre and Action as term, right now when we go for http://www.mysite.com/genre/action it use taxonomy.php to show it but there is no template for http://www.mysite.com/genre and we have to create a page template for this page.
    when a site use alot of taxonomies its really hard to have alot of pages just for this.

    Posted: 3 years ago #
  2. XYDAC
    Member

    12345

    +1 for this

    Posted: 3 years ago #
  3. Rami Yushuvaev
    Member

    12345

    done. in wp3.1.

    Posted: 3 years ago #
  4. Custom Post Types and Custom Taxonomies are completely different, yes an Archive Option was added in 3.1 for Custom Post Types. And while I'd love it for Custom Taxonomies too, I have been told this will not be happening (anytime soon anyways!) #sadpanda

    Posted: 3 years ago #
  5. Angry Creative
    Member

    12345

    This is still needed. Custom post types sucks badly for wp 3.1.

    Sure, its possible to add an archive for the custom post type - but there's no way of adding it to a taxonomy.

    A "perfect" permalink structure would be

    domain.com/custom-post-type = custom post type archive
    domain.com/custom-post-type/taxonomy = taxonomy archives
    domain.com/custom-post-type/taxonomy/single-post = single posts

    But instead I'd have to use a combination

    domain.com/custom-post-type = the custom post type archive
    domain.com/custom-post-type/single-post = single posts
    domain.com/random/taxonomy = taxonomy archives

    So; What Is really needed is being able to configure permalinks for custom post types similar to how they work for the "regular" blog. This should also include making modifications like this:

    domain.com/custom-post-type/year/month/day

    There's a plugin availible doing about the thing we want, but this should most def be core.

    plugin url is http://wordpress.org/extend/plugins/simple-custom-post-type-archives/

    Posted: 2 years ago #
  6. lerizzle
    Member

    I agree Angrycreative your structure is basic and should be there by default. I can't wait.

    Posted: 2 years ago #
  7. Angry Creative
    Member

    12345

    Thanks! :)

    Just for clarity, single posts should be viewable at both of these locations:

    domain.com/custom-post-type/single-post = single posts
    domain.com/custom-post-type/taxonomy/single-post = single posts

    Looks like I didn't clarify that in my last post :)

    Posted: 2 years ago #
  8. Angry Creative
    Member

    12345

    Maybe I should start another post? Someone obviously thinks this idea already is implemented.

    Posted: 2 years ago #
  9. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod

    Custom Post types do not, and will not, have the same URL structures as posts because they are not posts.

    CPTs have archives now, and there are plugins that work to extend that more if you need it.

    Taxonomies, like tags and cats, have the same kind of archive structure. It defaults just like they do.

    http://codex.wordpress.org/Template_Hierarchy#Custom_Taxonomies_display

    Yes, if you want them to all be custom, you have to make custom templates.

    Posted: 2 years ago #
  10. lerizzle
    Member

    Thanks Ipstenu.

    I know what you are saying. But what I believe 'we' are saying is that logically posts or custom posts should be available in more than one spot. For instance if I have a gallery taxonomy with a sub-taxonomy of Black and White I can have:

    http://www.site.com/galleries/black-and-white.

    black and white has an archive but galleries doesn't without a plugin.

    Then if I have a CPT of photos, Logically I should be able to have

    http://www.site.com/galleries/black-and-white/my-first-photo But I can't. it has to be:

    http://www.site.com/photos/my-first-photo.

    So then I need a query string or something to remember which gallery they were browsing.

    The reason for this as far as I can see is the way permalinks are handled in wordpress. The above structure would make the rewriting of rules out of control and after a few hundred posts the site would be extremely slow and even crash the server.

    So correct me if I'm wrong but the have the above possible, wordpress would have the rethink how URLs are written.

    Posted: 2 years ago #

RSS feed for this topic

Reply »

You must log in to post.

  • Rating

    12345
    11 Votes
  • Status

    This idea has been implemented